GUIDE

How do I protect a particular directory from being read (Like a data directory of a script) ?

To prevent access to all the files in a directory which is within your webservers directory, create a file called .htaccess using any text editor and add the following line to it.

Deny from all

Upload this using FTP into the directory you want protected like /cgi-bin/script/data. Now using your browser try going to http://www.yourdomain.com/cgi-bin/script/data (Replace yourdomain.com with actual domain) you should get access denied.

Back to Guide