public access to web directories

public access to web directories

Posted by: ibuyufo
Posted on: 2005-07-23 09:43:00

Hi,
I have a web site that I made and I found out that people could easily get into the /images directory by typing it at the end of the main url. How can I prevent public viewing of this directory yet retain web access so people can see the pictures? Thanks for your help.

Re: public access to web directories

Posted by: matttail
Posted on: 2005-07-23 10:06:00

set up a Htaccess file. Log into your panel> goodies> Htaccess and Webdav>

Select the domain you want this for, and set it up to forbid linking to files in this directory.



-Matttail

Re: public access to web directories

Posted by: silkrooster
Posted on: 2005-07-23 16:11:00

Another way is to put an index.htm file in the directory that tells the viewer they have accessed a forbidden directory and will be redirected to the main page. Then in the meta section add refresh with the website and time delay. Do a search on here for .htaccess and you will find an example I posted earlier. If you can not find it I can post again.
Silk

Tags: public accessweb accessweb directoriesimages directorymain urltypinghelpweb site