I have a JavaScript which can be called externally using <script type="text/javascript" src="http://mydomain.com/myscript.js"></script>
the script is created dynamically using php but I need to know where the script is being called from (which domain) the only way i can think off is using $ SERVER["HTTP REFERER"]
but not all browsers support this and it is insecure as it can be changed.
Dose anyone know a better way I could do it?