I’ve got a file on server, for example "file.txt". It may be requested from different domains.
Is there any way to track from which domain this file was requested and save this data somewhere?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think domain name would be your best option .. i would advice you stick to
IP address forrestrictionsYou can also use
$_SERVER ['HTTP_REFERER']to verify the exact script calling your file or about to load your fileTry