Return to Snippet

Revision: 70359
at January 22, 2016 06:43 by augoisms


Updated Code
<?xml version="1.0"?>
<configuration>
   <system.webServer>
      <security>
    	<ipSecurity allowUnlisted="false">    <!-- this line blocks everybody, except those listed below -->                
        	<clear/> <!-- removes all upstream restrictions -->
        	<add ipAddress="127.0.0.1" allowed="true"/>    <!-- allow requests from the local machine -->
        	<add ipAddress="83.116.19.53" allowed="true"/>   <!-- allow the specific IP of 83.116.19.53  -->                               
    	</ipSecurity>
	</security>
      <modules runAllManagedModulesForAllRequests="true"/>
   </system.webServer>
</configuration>

Revision: 70358
at January 22, 2016 06:41 by augoisms


Initial Code
<?xml version="1.0"?>
<configuration>
   <system.webServer>
      <security>
    	<ipSecurity allowUnlisted="false">    <!-- this line blocks everybody, except those listed below -->                
        	<clear/> <!-- removes all upstream restrictions -->
        	<add ipAddress="127.0.0.1" allowed="true"/>    <!-- allow requests from the local machine -->
        	<add ipAddress="83.116.19.53" allowed="true"/>   <!-- allow the specific IP of 83.116.19.53  -->                               
    	</ipSecurity>
	</security>
      <modules runAllManagedModulesForAllRequests="true"/>
   </system.webServer>
</configuration>

Initial URL


Initial Description
place web.config in which ever directory you would like to restrict

Initial Title
IP Restrict Directory

Initial Tags


Initial Language
XML