How to Stop A Directory Index From Being Shown

Sometimes, for one reason or another, you will have no index file in your directory. This will, of course, mean that if someone types the directory name into their browser, a full listing of all the files in that directory will be shown, which could be a security risk for your site. To prevent against this (without creating lots of new 'index' files), you can enter a command into your .htaccess file to stop the directory list from being shown: Options -Indexes.

  • 1 Users Found This Useful
這篇文章有幫助嗎?

相關文章

How do I reset my password for osCommerce?

osCommerce uses .htaccess and .htpasswd format files to manage the protection on the admin...

Can I add my own CGI scripts?

Our LINUX web servers have the capability to run CGI scripts in your own 'cgi-bin' directory....

How do I perform a trace route?

Traceroute (tracert) works by sending a packet to an open UDP port on a destination machine. For...

How do I make a subfolder the main folder for my main domain?

The main domain on the hosting account uses the public_html folder for all of its website files....

What is the meaning of owner, group, and everyone in the permissions panel?

- Owner defines the permissions set for your main FTP account. - Group defines permissions valid...