Link to home
Create AccountLog in
Avatar of Loganathan Natarajan
Loganathan NatarajanFlag for India

asked on

How do I prevent save as .JS files from my include directory?

I want to protect the users to save as my javascript files from my web site ... it is running on windows server with IIS ... How do I do that?
SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Loganathan Natarajan

ASKER

@ ryancys ...  thanks for your suggestion ...

but i have written some functions which is more confidential to the site ... at least Is not possible to prevent the file access ? through the browser ???

no matter if it saved in cache to access it ... but user should not try out with location of the folder and files ...

can be restricted with folder permission to the files or any other way ?
>>can be restricted with folder permission to the files or any other way ?

sure, it's possible, but that also mean that after the restriction, only certain users can access to your site, but you also can't prevent that the users allowed won't go and download your JS files. The JS source is not protected unless it's a Server Site Scripting source.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
obfuscator makes your javascript unreadable by humans but not to the browsers. Even if someone downloads a obfuscated js file, it will be unreadble(in the sense, it will be very difficult).
Thanks to all! ...