Categories
Block IP address
Blocking an IP address can be done by adding an addition to the web.config file. Note that this does not work through htaccess.
This way you can block spammers or unwanted visitors for example. Keep in mind that this is often only a temporary solution as an IP address can be changed in no time.
Allow everyone except the ip address we mention. Second option is to block everyone except your chosen IP.
<security>
<ipSecurity allowUnlisted="true">
<clear/>
<add ipAddress="83.123.12.15"/>
<add ipAddress="83.123.12.0" subnetMask="255.255.255.0"/>
<add ipAddress="83.123.0.0" subnetMask="255.255.0.0"/>
<add ipAddress="83.0.0.0" subnetMask="255.0.0.0"/>
</ipSecurity>
</security>
Option 2:
<security>
<ipSecurity allowUnlisted="false">
<clear/>
<add ipAddress="127.0.0.1" allowed="true"/>
<add ipAddress="85.122.56.45" allowed="true"/>
<add ipAddress="85.545.545.0" subnetMask="255.255.255.0" allowed="true"/>
<add ipAddress="85.116.0.0" subnetMask="255.255.0.0" allowed="true"/>
<add ipAddress="85.0.0.0" subnetMask="255.0.0.0" allowed="true"/>
</ipSecurity>
</security>