Password protected folder


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



Copy this code and paste it in your HTML
  1. Put in .htaccess file in the directory you are trying to protect:
  2.  
  3.  
  4. AuthType Basic
  5. AuthName "This Area is Password Protected"
  6. AuthUserFile /full/path/to/.htpasswd
  7. Require valid-user

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.