467,077 Members | 948 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,077 developers. It's quick & easy.

Redirect Question

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, www.mysite.com/images 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;URL=www.mysite.com'>

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.

Thanks!
Jan 25 '08 #1
  • viewed: 888
Share:
1 Reply
256MB
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.

Similar topics

1 post views Thread by Peter Kirk | last post: by
3 posts views Thread by Sehboo | last post: by
7 posts views Thread by Markus McGee | last post: by
2 posts views Thread by news://news.microsoft.com/microsoft.public.de.germ | last post: by
1 post views Thread by David | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.