By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,739 Members | 1,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,739 IT Pros & Developers. It's quick & easy.

Redirect Question

P: 40
Hi all,

Real quick question here. I'm a rookie to site security as well as site optimization. I want to prevent people from peeping at the directories of my site - for example, will show them a list of all the files in my images directory.

What I did was make a simple index.html file and stuck it in that directory. All it does is redirect the user back to the main index page. Code looks like this:

<META HTTP-EQUIV='refresh' CONTENT='0;'>

Is this standard practice, or is there a better way to do this? And do the search engines frown upon such redirects? I've used my robots.txt file to keep them out of the /images/ directory anyway, but I figured I'd ask.

Jan 25 '08 #1
Share this Question
Share on Google+
1 Reply

P: 428
There are no standards, but the client meta-refresh is a poor choice.
Many sites put an index page in every directory, but the page generally has a site map or other content.
Jan 26 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.