Forum Moderators: phranque
I don't want visitors looking at some of the files in the directory as they are scripts and other important files that enable the /widget/about/ page to work properly. I cannot put the about/ page in another directory.
Thanks
<html><head></head><body></body></html>
page that will display as a blank and stop people listing the files within.
However, I would make it more useful by redirecting to the home page.
You could also throw people off the trail with a fake error message like "Contents of Virtual Directory cannot be listed" that you see on some sites when you attempt to shorten the path of a dynamic URL to go higher in the site structure.
While in the directory above /widget/, "chmod o-r widget" on the command line.
(The webserver can't get a directory listing if it doesn't have read access to the directory, but it can still serve individual files by name. "man chmod" for the gory details on file permissions.)
page that will display as a blank and stop people listing the files within.
However, I would make it more useful by redirecting to the home page. <<
When redirecting to homepage, you could get into problems with SEs.
I would use the blank page (example above) to put links to my homepage, product page etc or just promote an affiliateprogram
I have an old home.htm that I removed recently. The index.htm was a frame. I changed index from a frame to a normal page and I no longer need the home.htm.
I find it odd and somewhat insulting to have search engines tell me what I can or cannot do with my own Web site. I'm not spamming, I'm cleaning up clutter.