password protect a file not directory


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



Copy this code and paste it in your HTML
  1. <FilesMatch mitglieder.php>
  2. AuthType Basic
  3. AuthName "Mitglieder Bereich"
  4. AuthUserFile /path/.htpasswd
  5. require valid-user
  6. </FilesMatch>

URL: http://de.selfhtml.org/servercgi/server/htaccess.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.