Password Protect a Directory with .htaccess
05/27/2017
1705272443928

About the work

Motivation: protect some directories from being accessed without authorisation. Solution: using the .httaccess file. You just have to configure one and place it into the directory you want to protect. The code inside the file would look something like this: 1 2 3 4 AuthType Basic AuthName "guest" AuthUserFile "/home/user/.htpasswds/public_html/directory2storepass/passwd" require valid-user AuthType Basic AuthName […]

Article
personal
personal
blog
programming
server
blog

Copyright registered declarations

Guillermo Bosch Bosch
Author
Consolidated inscription:
Attached documents:
0
Copyright infringement notifications:
0

Notify irregularities in this registration

Print work information
Work information

Title Password Protect a Directory with .htaccess
Motivation: protect some directories from being accessed without authorisation. Solution: using the .httaccess file. You just have to configure one and place it into the directory you want to protect. The code inside the file would look something like this: 1 2 3 4 AuthType Basic AuthName "guest" AuthUserFile "/home/user/.htpasswds/public_html/directory2storepass/passwd" require valid-user AuthType Basic AuthName […]
Work type Article
Tags personal, personal, blog, programming, server, blog

-------------------------

Registry info in Safe Creative

Identifier 1705272443928
Entry date May 27, 2017, 6:56 PM UTC
License All rights reserved

-------------------------

Copyright registered declarations

Author. Holder Guillermo Bosch Bosch. Date May 27, 2017.


Information available at https://www.safecreative.org/work/1705272443928-password-protect-a-directory-with-htaccess
© 2026 Safe Creative