I want to restrict users to access JS and CSS files using URL absolute path.
-
Hi all I want to restrict users to access Java script files and CSS files using URL absolute path. Like if user type http://www.xyzxyz123.com/common.js this, browser will give a prompt to save the common.js file or it will open the js file content. So i want to restrict this type of access. I had searched on google but i didn't get the solution can anybody suggest me a solution for this. Thanks for your time and consideration. Please help me.
Thanks & Regards, Anil Chelasani
-
Hi all I want to restrict users to access Java script files and CSS files using URL absolute path. Like if user type http://www.xyzxyz123.com/common.js this, browser will give a prompt to save the common.js file or it will open the js file content. So i want to restrict this type of access. I had searched on google but i didn't get the solution can anybody suggest me a solution for this. Thanks for your time and consideration. Please help me.
Thanks & Regards, Anil Chelasani
Cannot be done. You can try to hide your JavaScript and CSS in obfuscated files, but since the user's browser needs to have it in order to display your page, the resourceful user can always distill it back from there. :)
Niladri Biswas