If any one looks at the source code of a page, they will be able to see the links of the included .js files, and when they click on them, they will be able to see the entie code of the particular .js file.
Is there any way we can prevent that files being read? I mean like doing something in Apache or something...
Thanks, Ajeesh
can we make the .js files in the page unreadable?
Moderator: General Moderators
Re: can we make the .js files in the page unreadable?
Only thing you can do is pack (minify) your JS, then these files will be practically unreadable, but anyone with good JS knowledge still will be able to get back whatever you are trying to hide.
Re: can we make the .js files in the page unreadable?
Thanks for reply, 
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: can we make the .js files in the page unreadable?
couldn't you use apache's access control? stick something in .htaccess?
Re: can we make the .js files in the page unreadable?
what's the point of js file if it's not sent to browser?stick something in .htaccess?
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: can we make the .js files in the page unreadable?
my brain was somewhere else 