title: Why I .htaccess allow, deny order doesn't work?
body: <pre><code>Order Deny,Allow
  
  Deny from all
  
  Allow from 158.181.2.89
  </code></pre>
  
  <p><a href="http://www.myip.ru/get_ip.php?loc=" rel="nofollow">http://www.myip.ru/get_ip.php?loc=</a> - i see my ip here</p>
  
  <p>and i write it to allow myself only, but others ip to block, i can't understand why i can't allow that ip to enter??</p>
  
  <pre><code>$ip = $_SERVER['REMOTE_ADDR'];
  
  $array = array('192.168.0.1', '212.112.96.6');
  if (!in_array($ip, $array)) {
      exit("Вход воспрещён &lt;p&gt;Ваш IP ".$ip."&lt;/P&gt;");
  </code></pre>
  
  <p>i have tried this method, but it looks like many times other people have the same ip as me</p>