• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 546
  • Last Modified:

IIS 6 Deny Access by IP except one folder

I have a website that I want to grant access only to specific IP addresses, except for one folder that Needs anonymous access granted to all.  Is there any way to do this?
Charles Baldo
Charles Baldo
2 Solutions
Just a thought > add an additional NIC to the server and add a new IP address in the same subnet and create a new website and select the new Ip address (instead of using all unassigned) in the website content folder should point to the"  folder that Needs anonymous access granted to all" .Make sure you have selected the IP address for

instead of adding a new NIC you can also add any additional IP to the existing NIC --need to try I am not sure .

Then filter using your corporate firewall or in the web server firewall.
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:

IIS6 allow or deny to configure  access to a specific list of IP addresses. IP addresses can be specified individually or as a group by using a subnet mask.

You can also specify IP addresses by using a domain name, but doing so adds the overhead of a DNS lookup for each connection.

You cannot allow specific ip addresses to a web site and allow annoynmous access to a page or folder within using iis manager.

On the other and you can write a program or using rewrite rule to accomplish this, though I have not done this before, but I have use iis rewrite rule



Charles BaldoSoftware DeveloperAuthor Commented:
Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now