title: Restriction based on IP ranges
body: <p>I am building an admin panel. and I want to block certain IP ranges. I'm testing this on my localhost wamp server but ir doesn't seem to redirect me.</p>
  
  <pre><code>&lt;?php
     if($_SERVER['REMOTE_ADDR'] == '127.0.0..*') 
        header("Location: http://google.com");
     else
        echo "Hai";
  ?&gt;
  </code></pre>
  
  <p>Any input is appreciated.</p>