Windows – Block access to certain file IIS 6.0

iiswindowswindows-server-2003

we are running a Windows Server 2003 with IIS 6.0 installed and I need to block access to certain file being exposed to the internet.

Im the virtual folder I have a index.html file with an embed index.swf file. This swf file needs a config.xml file to run (which is in the same folder) and other multiple swf file located in a com folder (also in the same folder).

Here's a diagram :

Virtual folder
    |-> index.html    
    |-> index.swf
    |-> config.xml
    |-> com
         |-> a lot of swf files

How can I possibly restrict the access so the user can't look at the content of the config.xml file and the com folder but can still be able to "run" the index.html (therefore the index.swf and all the other swf files located in the com folder).

Thank

Best Answer

One technique is to use a Redirect rule that terminates the request if it is for one of the file types you want to block. We use ISAPI_Rewrite (the free version) to do this.

Related Topic