Please Login or Register

Knowledgebase

How to Stop a Directory Index Showing

Often, particularly in admin/system directories you will not have an index file in a directory. This means, by default, when someone browses the folder it will display a full listing of all the files in the directory. This could poitentially pose a security risk, and means people can nose at your files.

You can easily prevent this, without creating a blank index file, by adding the following to the .htaccess file to stop directory listings showing.

CODE:
Options -Indexes






Was this answer helpful?
Add to Favourites Add to Favourites   Print this Article Print this Article
Also Read
Does XDnet support XML? (Views: 1176)

Powered by WHMCompleteSolution

Language:


Web Hosting
Client Login
Web Hosting

Email

Password

Remember Me


Web Hosting
Search
Web Hosting




Follow Us on Twitter