Click to See Complete Forum and Search --> : How to disable downloading of the .js and other included files


kanhaiyadiwan
May 19th, 2005, 01:02 AM
Hi

I want to disable downloading of the .js and other included files like .xml, .css.

I have tried various ways like implementating IHttpHandler, IHttpModule etc.

I even tried to set permissions on files and IIS configuration settings. But nothing seems to be working to the perfection.

So if any one of your know the solution for above, please let me.

with regards,

Kanhaiya

cmiskow
May 19th, 2005, 09:56 AM
This is simply not possible. When the browser downloads a web page to view, it also downloads the included files (js, css, etc.), because it needs to download them to render the page properly. Maybe there is a way to disable people from downloading them directly, but they will always be downloaded when you view the page, and so they will be stored in memory on the client machine and people who know what they're doing will be able to access them regardless.