Simple Directory Protection with .htaccess
September 08, 2010
To deny access to a folder or directory, simply create a new .htaccess file inside that directory.
Then depending on the authorisation type you want to use you can make rules to allow or deny access.
View some examples below.
Allow by Ip
allow from 18.104.22.168
deny from all
This denys anyone not on ip 22.214.171.124 access to your folder.