Free WebHosting No. 1 »

free hosting, free aliases, no intrusive advertising, no problem ;-)

Help

Page/directory protection with .htaccess and .htpasswd

We recommend using the following code for the .htaccess file:

AuthName "Dialog prompt"
AuthType Basic
AuthUserFile /home/{user}/public_html/{address}/{folder}/.htpasswd
Require valid-user

{address} - dla page.7m.pl this will be "page"

Sample .htpasswd file content for login and password "test": test:$apr1$9w/QNB6C$FRVuNdnqMMWG1pCnLodeW1


come back