{"action":"created","issue":{"url":"https://api.github.com/repos/poledev/tristan/issues/55","labels_url":"https://api.github.com/repos/poledev/tristan/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/poledev/tristan/issues/55/comments","events_url":"https://api.github.com/repos/poledev/tristan/issues/55/events","html_url":"https://github.com/poledev/tristan/pull/55","id":110176565,"number":55,"title":" \t[story/18] Add an API to get random job","user":{"login":"Nicofuma","id":591456,"avatar_url":"https://avatars.githubusercontent.com/u/591456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicofuma","html_url":"https://github.com/Nicofuma","followers_url":"https://api.github.com/users/Nicofuma/followers","following_url":"https://api.github.com/users/Nicofuma/following{/other_user}","gists_url":"https://api.github.com/users/Nicofuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicofuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicofuma/subscriptions","organizations_url":"https://api.github.com/users/Nicofuma/orgs","repos_url":"https://api.github.com/users/Nicofuma/repos","events_url":"https://api.github.com/users/Nicofuma/events{/privacy}","received_events_url":"https://api.github.com/users/Nicofuma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/poledev/tristan/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-07T08:37:16Z","updated_at":"2015-10-07T08:40:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/poledev/tristan/pulls/55","html_url":"https://github.com/poledev/tristan/pull/55","diff_url":"https://github.com/poledev/tristan/pull/55.diff","patch_url":"https://github.com/poledev/tristan/pull/55.patch"},"body":"Issue: #13"},"comment":{"url":"https://api.github.com/repos/poledev/tristan/issues/comments/146119055","html_url":"https://github.com/poledev/tristan/pull/55#issuecomment-146119055","issue_url":"https://api.github.com/repos/poledev/tristan/issues/55","id":146119055,"user":{"login":"Nicofuma","id":591456,"avatar_url":"https://avatars.githubusercontent.com/u/591456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicofuma","html_url":"https://github.com/Nicofuma","followers_url":"https://api.github.com/users/Nicofuma/followers","following_url":"https://api.github.com/users/Nicofuma/following{/other_user}","gists_url":"https://api.github.com/users/Nicofuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicofuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicofuma/subscriptions","organizations_url":"https://api.github.com/users/Nicofuma/orgs","repos_url":"https://api.github.com/users/Nicofuma/repos","events_url":"https://api.github.com/users/Nicofuma/events{/privacy}","received_events_url":"https://api.github.com/users/Nicofuma/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T08:40:20Z","updated_at":"2015-10-07T08:40:20Z","body":"Question:\r\n> The API must accessible only by those urls :\r\n> - http://symfony.com\r\n> - http://sensiolabs.com\r\n\r\nAs I understand it, only the symfony.com and sensiolabs.com websites can access the URL but can I do that?\r\n- http://symfony.com/doc/current/components/routing/hostname_pattern.html is irrelevant because it matches the `Host` header of the request\r\n- We can't trust the `Referrer`\r\n- The IP address of these websites can change at anytime\r\n\r\nOne solution I see is to allow the whole range of they an have"}}