Directory Protection


#1

I know I’m probably overlooking something obvious, but how do I protect my directories from recursive browsing? Thanks.


#2

Make a .passwd and put the following in:
username:password

Save to outside of your main (for example /)

Now make a .htaccess and put the following in:

AuthUserFile /location/of/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require user username

http://www.javascriptkit.com/howto/htaccess3.shtml
http://www.freewebmasterhelp.com/tutorials/htaccess/3
http://www.htmlite.com/HTA006.php