Disabling directory browsing to prevent files from being displayed .htaccess apache webserver hosts

Filed in Apache 0 comments

In some cases for a better security or even by just your intention you may want to prevent files from being displayed for the public on your website where there is no index.php o index.html
To do so on Apache Webserver where you have root access just copy and paste the following code into your httpd.conf or modify the directive to the following just putting a minus behind Indexes

Options -Indexes

If you do not have root access you can modify .htaccess as it is apache configuration module instead by putting the above code that I will mention again into the .htaccess configuration file.

Options -Indexes

Related posts:

  1. Prevent CGI execution in apache for better security
  2. How to stream flv with apache and jwplayer in linux server?
  3. Redirect url based on referer website or ip address using .htaccess
  4. how to fix internal server error caused by .htaccess
  5. Redirect all of the traffic with requested old domian url to new domian with the same url using .htaccess
  6. Remove indexing notification on magento
  7. how to change permissions of files and folders in linux
Posted by voshka   @   1 January 2012 0 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone