1

I want to redirect [not blocking them] all the ip's in between 83.116.119.0 to 255.255.255.0 Please help me to write a pattern in my code(IPTOBEBLOCKED). Am a newbie in web.config , Here is my code

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
    <rules>
        <clear />
        <rule name="Redirect Japan Users" enabled="true" stopProcessing="false">
            <match url=".*" />
            <conditions>
                <add input="{HTTP_HOST}" pattern="IPTOBEBLOCKED"/>
            </conditions>
            <action type="Redirect" url="http://www.example.net/jp/" redirectType="Permanent" appendQueryString="false" />
        </rule>
    </rules>
</rewrite>
</system.webServer>
</configuration>
bibin john
  • 11
  • 2

0 Answers0