SHARE
TWEET

Untitled

a guest Jun 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <rewrite>
  2.     <allowedServerVariables>
  3.         <add name="REMOTE_ADDR" />
  4.         <add name="REMOTE_HOST" />
  5.     </allowedServerVariables>
  6.     <globalRules>
  7.         <rule name="Remote" patternSyntax="ECMAScript">
  8.             <match url=".*" ignoreCase="false" />
  9.             <conditions>
  10.                 <add input="{REMOTE_ADDR}" pattern="^10.1.1.[123]$" ignoreCase="false" />
  11.                 <add input="{HTTP_X_FORWARDED_FOR}" pattern="d+.d+.d+.d+$" ignoreCase="false" />
  12.             </conditions>
  13.             <serverVariables>
  14.                 <set name="REMOTE_ADDR" value="{C:0}" />
  15.                 <set name="REMOTE_HOST" value="{C:0}" />
  16.             </serverVariables>
  17.             <action type="None" />
  18.         </rule>
  19.     </globalRules>
  20. </rewrite>
  21.      
  22. <add input="{REMOTE_ADDR}" pattern="^10.1.1.[123]$" ignoreCase="false" />
  23.      
  24. 10.1.1.1 or 10.1.1.2 or 10.1.1.3
  25.      
  26. <system.webServer>
  27.     <rewrite>
  28.         <rules>
  29.             <rule name="IP Restricted" patternSyntax="ECMAScript" stopProcessing="true">
  30.                 <match url=".*" ignoreCase="false" />
  31.                 <conditions>
  32.                     <add input="{REMOTE_ADDR}" pattern="^(127.|10.20.74.|10.25.182.|10.64.105.10)" ignoreCase="false" negate="true" />
  33.                 </conditions>
  34.                 <action type="Rewrite" url="/403.html" appendQueryString="false" logRewrittenUrl="true" />
  35.             </rule>
  36.         </rules>
  37.     </rewrite>
  38. </system.webServer>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top