Prevent access to a specific file - .htaccess

# the following prevents display of the filetohide file <files filetohide.jpg> order allow,deny deny from all </files>
Paste the following code in the .htaccess file to prevent access to your selected file. In our example, we decided to hide the file named filetohide.jpg. This can be a file of any tyep (html, jpg, php, etc.)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.