Protect a Directory Using .htaccess
Create a .htaccess file Use an ASCII text editor like Notepad to create a text file with the following contents: AuthName "Secure Area" AuthType Basic AuthUserFile /path/to/your/directory/.htpasswd require valid-user Note…