Answers
Aug 30, 2006 - 04:27 PM
You can't prevent people from downloading the files, but you can encrypt them or obfuscate them if you want it to be difficult for people to see what you've programmed.
I don't know any free scripts to do this, but here are a few links to shareware (they have trial periods) that might be what you're looking for.
http://www.topshareware.com/Advanced-...
http://www.protware.com/default.htm
http://www.exefind.com/encrypt-php/
Let me know if that was what you were looking for.
theDude
Aug 31, 2006 - 03:19 AM
You got the right things but I want to do in scripting the encryption of these files.
Regards,
Sarbjit
Sep 03, 2006 - 12:23 PM
http://snyke.net/blog/2006/09/02/js-l...
Regards,
Snyke
Jun 22, 2008 - 03:04 AM
I was looking at your comments and have the same problem. I use ASP programming and have my JS files in a seperate folder to hide them but when I look at the source code in the browser it obviously displays the path to this folder in my tag. If I select and copy this path from the displayed source file and paste it into the address bar accordingly it allows me to download the file, so my question would be, is there anyway to password protect this folder to prevent download? <br> <br>Let it be said also that my JS is very basic, (image over buttons) so it is not important but I would like to find a way to hide these files incase I ever have to deal with sensitive data using JS. I can do this with VB anyway, (run on server), but I would like to prevent as much server lag as possible. <br> <br>Thanks for your time people. <br> <br>regards, <br>James.
Jul 07, 2008 - 08:08 AM
Don't know if you have already thought about it this way: You can indeed password protect the folder with you script files, to prevent download, but they wouldn't be much good then, since the browser wouldn't be able to see them either. Anything that runs client-side will have to be visible to the client (browser, user, whatever). You can make things difficult for the user by only serving the file if the referer is your web page, but anyone who would have an interest in seeing your secret js-file with sensitive data, will also be clever enough to overcome any kind of obstacle you may present.
If you want to hide script or data, the answer is to run it on the server and never serve it to any client.
Hope it makes sense!
Jakob



Add New Comment