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 ++ |
|
Snap HTML Code Editor: Paste the source code, make changes and instantly see it in live preview. Snap HTML Code Editor
|
|
Copied To Clipboard!
# prevent viewing of a specific file
<files mysecretfile.jpg>
order allow,deny
deny from all
</files>
|