Created
May 9, 2020 22:48
-
-
Save mattou07/050f13c0869c1d1c4c35c1bb708fa76b to your computer and use it in GitHub Desktop.
Xml Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rule name="RestrictBackOffice" enabled="true" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url="*" /> | |
<conditions> | |
<add input="{URL}" pattern="/Umbraco/*" /> | |
<add input="{URL}" pattern="/Umbraco/surface/*" negate="true" /> | |
<add input="{REMOTE_ADDR}" pattern="Your-IP" negate="true"/> | |
<add input="{REMOTE_ADDR}" pattern="Another-IP" negate="true"/> | |
<add input="{REMOTE_ADDR}" pattern="127.0.0.1" negate="true"/> | |
<add input="{HTTP_X_FORWARDED_FOR}" pattern="Your-IP" negate="true"/> | |
<add input="{HTTP_X_FORWARDED_FOR}" pattern="Another-IP" negate="true"/> | |
<add input="{HTTP_X_FORWARDED_FOR}" pattern="127.0.0.1" negate="true"/> | |
</conditions> | |
<action type="CustomResponse" statusCode="404" statusReason="File or directory not found." statusDescription="The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable." /> | |
</rule> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment