View Single Post
Old 09-08-2004, 05:59 PM   #5 (permalink)
LazyJim
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,821
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
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.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline   Reply With Quote