Main Menu
Home
Standard Hosting Package
Extras
Installation
Domain Names
About Dogsbody Hosting
Contact Us
Showcase
Usage Policy
Service Agreement

Customer Menu
Webmail
phpMyAdmin
- - - - - - - - - - - - - - - - - - - - -
Support FAQ

Webmail Login
Username

Password

Your Location Home arrow Support FAQ arrow Webspace arrow How do I stop people viewing all the files in a directory?
How do I stop people viewing all the files in a directory? Print

Option 1 - If any of the following filenames appear in a directory the file will be returned when a directory is called on it's own. index.html index.htm index.shtml home.html home.htm default.html default.htm index.php default.php index.asp default.asp index.cgi index.php3 index.php4 index.wml index.wmls .

Option 2 - Add the line 'Options -Indexes' to your .htaccess file and any directories that would return a directory listing will now return 403-Forbidden. This works well when you have configured the errorpages for your site.


 

Search This Site

Latest News
  • Bid for Middle East peace begins
    The US Secretary of State tells the Israeli and Palestinian leaders they have the "opportunity to end this conflict" as direct peace talks begin.
  • Pakistan trio hit by ICC charges
    The three Pakistan cricketers accused of corruption - Salman Butt, Mohammad Asif and Mohammad Amir - have been charged, and provisionally suspensed, by the International Cricket Council.
  • PM backs Hague over aide rumours
    David Cameron supports William Hague "100%" following speculation about the foreign secretary's private life, the PM's spokeswoman says.
  • Explosion on Gulf of Mexico rig
    An explosion rips through an offshore oil rig in the Gulf of Mexico, west of the site of the blast in April that caused a huge oil spill.
  • Ministers propose 45p drink price
    The Scottish government says drinkers should be charged a minimum of 45p for every unit of alcohol as part of efforts to cut consumption.
  • Strike 'kills Afghan civilians'
    Ten election campaign workers have been killed in an air strike by Nato-led forces in Afghanistan, Afghan officials say.
  • RBS to cut a further 3,500 jobs
    Royal Bank of Scotland is planning to cut 3,500 jobs from its technical and back office division.
  • Burger King is sold for $3.26bn
    Burger King is being sold to private equity firm 3G Capital in a deal valued at $3.26bn (£2.1bn), it has been announced.



Copyright © 2003-2010 Dogsbody Hosting