We have IP and Domain Restrictions installed in IIS, if you want to restict someone or search enginer to access to your site, you can add url rewrite rule in your web.config file
Here is the sample rule for your reference.
If you want to block ip 201.45.33.* from your site
<rewrite>
<rules>
<rule name="IP Filter" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAny">
<add input="{USER_AGENT}" pattern="SomeRobot" />
<add input="{REMOTE_ADDR}" pattern="201\.45\.33\.[0-5]" />
</conditions>
<action type="AbortRequest" />
</rule>
</rules>
</rewrite>
If you want to block all the ip to access to your site execpt ip 1.1.1.*
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RequestBlocking" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{REMOTE_ADDR}" pattern="1.1.1.*" negate="true" />
</conditions>
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="403" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Article ID: 315, Created: January 6, 2013 at 10:33 PM, Modified: January 6, 2013 at 10:33 PM