Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
You have to add the 'IP Address and Domain Restrictions' Role in the server manager. –  UpTheCreek Feb 1 '11 at 11:38

1 Answer 1

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='172.16.0.1',allowed='true']"
appcmd set config /section:ipsecurity /+"[ipaddress='172.16.0.0',subnetmask=255.255.0.0',allowed='true']"
appcmd set config /section:ipsecurity /+"[domainname='example.com',allowed='false']"
share|improve this answer

Your Answer

 
discard

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.