Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ennija 44 posts 126 karma points
    Feb 26, 2016 @ 08:51
    Ennija
    0

    Web.config rule ip

    i need access to the admin page specific IP Address. example, 1.11.0.0/20

    I wrote

      <rewrite>
      <rules>
              <rule name="Admin" enabled="true" stopProcessing="true">
                    <match url="^umbraco($|/(?!surface))" />
                    <conditions logicalGrouping="MatchAll">
                      <add input="{REMOTE_ADDR}" pattern="^1\.11\.0\.0/20$" negate="true" />
                    </conditions>
                    <action type="Redirect" url="/NotAccess.html" />
                </rule> 
      </rules>
    </rewrite>
    

    but do not work, as properly can be written to work?

Please Sign in or register to post replies

Write your reply to:

Draft