htaccess by ip or pass


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. AuthName "admin"
  2. AuthType Basic
  3. AuthUserFile /home/blaz/.htpasswd
  4. Satisfy Any
  5. <Limit GET POST>
  6. order deny,allow
  7. deny from all
  8. allow from 127.0.0.1
  9. require valid-user
  10. </Limit>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.