I have a PHP file that generates a JS file, that is being included on a number of sites. I'd like to be able to check which site the file is being included from on each request. I tried using $_SERVER['HTTP_REFERER']
in PHP, but that just returns the domain that the JS file is hosted on.
Any ideas would be greatly appreciated.