Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> Prevent Unauthorized Directory Browsing


Code Snippet </> Info


Snippet Name: Prevent Unauthorized Directory Browsing

Description: Prevent unauthorized directory browsing by instructing the server to serve a Forbidden Authorization Required? message for any request to view a directory. For example, if your site is missing the default index page, everything within the root of your site will be accessible to all visitors. To prevent this, include the following .htaccess rule.

Note:

Author:

Last Modified: 2015-03-26 23:41:08

Language: .htaccess

Highlight Mode: html

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

# Prevent Unauthorized Directory Browsing Options All -Indexes


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library