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?

  • 1
    You have to add the 'IP Address and Domain Restrictions' Role in the server manager.
    – UpTheCreek
    Feb 1 '11 at 11:38

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='example.com',allowed='false']"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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