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?
From serverfault
P a u l
-
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']"From Oskar Duveborn
0 comments:
Post a Comment