title: .htaccess / .htpasswd bypass if at a certain IP address
body: <p>Is it possible to have an .htaccess/.htpasswd access control setup for a given directory, but if they are from a specific IP address, bypass the login/password authentication?</p>
  
  <p>I know you can do something like this in the .htaccess file:</p>
  
  <pre><code>order deny,allow
  deny from all
  allow from 000.000.000.000
  </code></pre>
  
  <p>But if you add something along these lines:</p>
  
  <pre><code>AuthType Basic
  AuthName "restricted area"
  AuthUserFile /path/to/.htpasswd
  require valid-user
  </code></pre>
  
  <p>Then it prompts for the password. Is there any way to do an if/else type setup, or some other solution so that users as a given IP (or set of IPs) don't get prompted for a password, but everyone else does?</p>