Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application, I am allow only list of users based on IP address. I am writing a code in web.config file as

XML
<system.webServer>

    <security>

      <ipSecurity allowUnlisted ="false" >
        <!--blocks every one unless the ip address in list-->
        <clear/>
        <add ipAddress ="192.0.0.110" allowed ="true"/>
         <add ipAddress ="192.168.78.0" subnetMask ="255.255.255.0" allowed="true" />
        <add ipAddress ="193.167.89.0" subnetMask ="255.255.255.0" allowed ="true"/>

      </ipSecurity>

    </security>


but it is not working.It allow every users. I don't know why it is happened?
Can Any one explian me? or suggest me different idea also.
Thanks in advance.
Posted

1 solution

Have you enabled IP Security as part of the site?

See this page; http://www.iis.net/configreference/system.webserver/security/ipsecurity/add[^]
 
Share this answer
 
Comments
iyalarasi 3-Oct-12 5:33am    
This page only show the procedure for windows 7 and vista. I am using windows xp. can you suggest some more links? This is very useful. Thank you very much.
iyalarasi 3-Oct-12 5:48am    
I am using windows xp. so please suggest me site that configure ipsecurity in iis with windows xp model.
DaveAuld 3-Oct-12 6:51am    
Sorry, don't have an XP machine to verify on, but I think you go into IIS, right click the website, select properties and on the Directory Security tab edit IP Restrictions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900