Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
But I want to know how to protect my .js files from being downloaded from my html root. I saw this being talked about on a site but I forget what the site was. So can anyone help me out on this?
But this also has a downside. People that have referers turned off will not be able to use js in your pages.
You might want to look into scrambling js.
joined:Aug 6, 2003
use ms's script encoder if you dont want poeple to look.
functional = window.location == 'myURL' ? 1 : 0;
If someone can figure it out they would probably be writing their own. If they can't, it won't work on any page but yours.