title: IIS7 web.config rewrites to restrict access for IP range - can't get it to work?
body: <p>I'm simply adding to a set of rules on existing rewrite rules for our company website. We have a file that we need to restrict to only our internal IP addresses. The URL is <a href="http://oursite.com/internal/index.aspx?u=blahblah" rel="nofollow">http://oursite.com/internal/index.aspx?u=blahblah</a> and need it restricted to IP ranges 10.1.X.X. I'm adding this and it's not doing anything. Even if I tried to capture all using .* for the pattern, it still ignores it. Is my syntax correct? Thanks.</p>
  
  <pre><code>&lt;rewrite&gt;
      &lt;rules&gt;
      ...
          &lt;rule name="Restrict URL" enabled="true" stopProcessing="true"&gt;
               &lt;match url="internal/index\.aspx" /&gt;
               &lt;conditions&gt;
                    &lt;add input="{REMOTE_ADDR}" pattern="^10\.1\.\d+\.\d+$" negate="true" /&gt;
               &lt;/conditions&gt;
               &lt;action type="AbortRequest" /&gt;
          &lt;/rule&gt;
      &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>