Page 1 of 1
can we make the .js files in the page unreadable?
Posted: Tue Feb 09, 2010 12:50 am
by jishcem
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
Re: can we make the .js files in the page unreadable?
Posted: Tue Feb 09, 2010 5:26 pm
by kaszu
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?
Posted: Wed Feb 10, 2010 7:06 am
by jishcem
Thanks for reply,

Re: can we make the .js files in the page unreadable?
Posted: Wed Feb 10, 2010 2:03 pm
by daedalus__
couldn't you use apache's access control? stick something in .htaccess?
Re: can we make the .js files in the page unreadable?
Posted: Wed Feb 10, 2010 4:00 pm
by kaszu
stick something in .htaccess?
what's the point of js file if it's not sent to browser?
Re: can we make the .js files in the page unreadable?
Posted: Wed Feb 10, 2010 7:33 pm
by daedalus__
my brain was somewhere else
