I have a file associated with other subsites.
File: http://site.com/file.img
http://site.com/file.img
Website Link to it <img src="http://site.com/file.img"></img>
<img src="http://site.com/file.img"></img>
B website associated with it <img src="http://site.com/file.img"></img>
I need to reliably determine which of these websites has accessed the file, but I know what $_SERVER['HTTP_REFERER']can be faked. What other ways can I reliably confirm the site of the requester? By IP, get them to register IP? not sure. configure API key? What are the options?
$_SERVER['HTTP_REFERER']
If a website is only associated with a file, the website itself will never be able to access your image. Instead, the client browsing the site will request an image.
, , , - . - cookie , , .
100%.
- , , .
, : - file.img - A - B, , - A - B - . file.img .
file.img
:
- A , , <img src="http://websiteA.com/file.img"/> ( A, ). file.img WebsiteA.com . - A - /file.img , http://site.com/file.img. , - A , - -. - A .
<img src="http://websiteA.com/file.img"/>
/file.img
, - A B, , . , .
, OpenID, . , .
http://googlecode.blogspot.com/2010/11/googles-sample-openid-relying-party.html
Source: https://habr.com/ru/post/1778892/More articles:Есть ли имя для java-метода, считающегося отдельным от какого-либо конкретного класса? - javaОбъединение при использовании NSNotificationQueue - objective-cHow to do a capture by clicking a button in PhoneGap? - javascriptwpf Arabic text not showing correctly - c #xcode dropdown - shows all my class properties and methods. Just want methods - iphoneЕсли вызов веб-службы REST завершается с ошибкой, следует ли повторить попытку отправки сообщения или очереди событий позже? - javajquery ajax извлекает только один div-блок с другой страницы - jqueryHow can I set the position of the text? - androidIndividual screen of incoming calls - androidЗахват нажатия клавиш в Javascript (Документы Google) - javascriptAll Articles