Password protect a folder in Apache (XAMPP and Mac OS X)
First you have to create a file with the user and the password to be used with htpasswd
:
/Applications/XAMPP/xamppfiles/bin/htpasswd -c /Applications/XAMPP/etc/.htpasswd admin
New password:
Re-type new…