|
deterants are all u can really do i think.
maybe try...
make sure it's a linked .js file but change the extension to PHP (or asp or whatever u use) and make the PHP file check for the HTTP Referer, that it is your site, not an empty string, and then print the script, else print a message saying pls don't view my code!
and all your code should be wrapped in functions, and the should have a toString() method attched that returns a message "protected code" or something like that.
U can get past it if your browser has a "set fake referea header" option though :/
hey maybe get PHP to store it in a secure cookie and make another script to pull it out and run it. (don't forget the .toString() thing though!)
like I said - all just deterants I think.
|