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 want to restrict users of an IIS7 website to only one user host IP address that I will specify in advance. I've done it the other way round in IIS6, where I restricted a certain domain to see only a special page, everyone else access as normal.

My problem is that I don't know if I can do what I want -- just allow one user host IP or domain. Do you know if this is possible?

I also am unable to find the 'IP Address and Domain Restrictions' dialogs in IIS7. Where did these go?

share|improve this question
You have to add the 'IP Address and Domain Restrictions' Role in the server manager. – UpTheCreek Feb 1 '11 at 11:38
up vote 3 down vote accepted

It's called Address Restriction and should be easily configured using the Management UI.

Also, the command line can be used to manage restriction rules:

appcmd set config /section:ipsecurity /+"[ipaddress='',allowed='true']"
appcmd set config /section:ipsecurity /+"[ipaddress='',subnetmask=',allowed='true']"
appcmd set config /section:ipsecurity /+"[domainname='',allowed='false']"
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.