I was wondering if it's possible to prevent javascript access and prevent javascript caching using PHP. My idea is to hide "proprietary" javascript (I know it's hard to make 100%) using PHP like such:
<script langauge='Javascript' src="myjavascript.php?">
and then maybe check the referer server variable to see if the referer was that web page, and only return the script if it is?
Has anyone ever done something like this?
Thanks for any thoughts.
Jeff