How to protect JavaScript?

From: Date: Wed, 16 Jan 2002 14:29:28 +0000
Subject: How to protect JavaScript?
Groups: php.general 
Request: Send a blank email to php-general+get-80706@lists.php.net to get a copy of this message
Hello! I want to protect a JavaScript: It should only be readable out of the document, where it is included (with <script language="javascript" src="/myjs.js">). But it should not be possible to read it directly with www.myserver.de/myjs.js. I thought I could do this with PHP (f.e. check the HTTP_REFERER, but this only works with IE, because NS doesnÄt set the referer for the script-tag). Any good ideas? Martin

« previous php.general (#80706) next »