Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just want to allow only some ips to access my Web Application .
and For this i reach to this post "https://www.stokia.com/support/misc/web-config-ip-address-restriction.aspx[^]"

and according to this i update my web config with given code in <configuration> .


XML
<system.webServer>
   <security>
     <ipSecurity allowUnlisted="false">
       <clear/>
       <add ipAddress="83.116.19.53" allowed="true"/>
     </ipSecurity>

   </security>
   <!--<modules runAllManagedModulesForAllRequests="true"/>-->
 </system.webServer>




but it's not working . please suggest how to restrict .
Posted

 
Share this answer
 
Comments
Gaurav Dixit 15-Jul-15 7:02am    
is it not possible by defining in Web config
This can also be done administratively. IIS has the feature to restrict website to a certain range of IP Addresses.

Check this link
- How to restrict a IIS7 web site to a specific range of IP address[^]
 
Share this answer
 
Comments
Gaurav Dixit 15-Jul-15 7:03am    
is it not possible by defining in Web config

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