|
What you would use this for: To prompt visitors to enter a correct username and password to gain access to a specific directory.
What you need:
An FTP client (Transmit - external link)
A text editor (TextWrangler - external link)
1.In the "htaccess and htpasswd generation form" below, use the following settings:
Path: /Library/WebServer/WebSites/YourUsername/public_html/YourFolder (replace "YourUsername" with your ftp username the you use for your site, and "YourFolder" with the folder you are password protecting. The rest of the path should be typed in exactly as above.)
Username: Put the username you would like to use to protect this directory
Password: Put the password you would like to use to protect this directory
Click the "Generate" button.
htaccess and htpasswd generation form:
|