Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a main site, lets call it

I have a subdomain

In my root directory, it has the "sub" folder. Inside "sub" folder, i have certain files that are not allowed to be viewed by public. So, in my IIS6 config, I set when public access the file, it would do a redirection to another URL. My problem is:

When I type this: => It would redirect, but when I type this: => It can access the file

The file type is .SWF

Please help

share|improve this question

It sounds as though has its own web site entry in IIS. If that is the case, you will also need to alter the properties for that web site to restrict access (disable anonymous users, set IP restrictions, or however you're restricting access). Alternatively, you could use NTFS permissions on the actual folder itself on the server to disallow the IUSR_MACHINENAME account from being able to list/read the files and it will cause IIS to prompt the user for credentials.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.