Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> Password Protect Folder


Code Snippet </> Info


Snippet Name: Password Protect Folder

Description: You can easily password protect folders using this code snippet.


You can create the code for your unique username and password here.


Note:

Author:

Last Modified: 2014-05-18 05:02:25

Language: .htaccess

Highlight Mode: html

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

Put in .htaccess file in the directory you are trying to protect: #Begin AuthType AuthType Basic AuthName "This Area is Password Protected" AuthUserFile /full/path/to/.htpasswd Require valid-user #End AuthType Then, put a .htpasswd file containing authorized USER NAMES and PASSWORDS in the directory being protected. JohnDoe:$may1$O/BJv.Mv6Kd/ME/


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library