Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly


password protected web folder
by admin
 at 2016-05-11 18:33:50.

in c:\xampp\apache\bin\

htpasswd.exe -c -b .htpasswd ausername apassword

htpasswd -c /home/folder/.htpasswd ausername 

and then add the following to your .htaccess

AuthName "test"
AuthType Basic
AuthUserFile "C:/folder/.htpasswd" #or "/home/folder/.htpasswd"
require valid-user
DirectoryIndex index.php