Tag Archives: password

Password Protect a folder or page using apache

Make sure you have AllowOverride All First Create any dummy file at any location.For eg i have created pass.txt in /ete/ folder touch /etc/pass.txt In .htaccess write this code AuthName “Restricted” AuthType Basic AuthUserFile /etc/pass.txt Require valid-user Then Write this … Continue reading

Posted in Apache, Ubuntu | Tagged , , | Leave a comment