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

 

Category: >> .HTACCESS Codes Library >> Prevent Access to a Specific File


Code Snippet </> Info


Snippet Name: Prevent Access to a Specific File

Description: To restrict access to a specific file, add the following code block and edit the file name mysecretfile.jpg? with the name of the file that you wish to protect.

Note:

Author:

Last Modified: 2015-03-26 23:37:09

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
Copied To Clipboard!

# prevent viewing of a specific file <files mysecretfile.jpg> order allow,deny deny from all </files>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library