Forum Moderators: phranque

Message Too Old, No Replies

How to set correctly .htaccess that directory browsing is off?

         

toplisek

1:27 pm on Mar 25, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How to set correctly .htaccess that directory browsing is off for security reasons.

Can I check this working on server when I set this in .htaccess?

Is setting seen in PHPinfo when hosting defines on its own?

wilderness

2:24 pm on Mar 25, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Options -Indexes

toplisek

5:33 pm on Mar 25, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can I check this working on server?

wilderness

6:38 pm on Mar 25, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Check what to see if indexes are not showing?

If your not sure what they are (indexes)(or how to view them) why even bother with attempting to implement a restriction?

Just do a request for a directory (your domain root or any other that does not contain a default file)will suffice.

If you get a list of files rather than a web page or a 403 Access denied, than noIndexes has not been implemented.