Home :: Blog :: Articles :: Web-Hosting :: How to Protect access to a specific file on server using htaccess

How to Protect access to a specific file on server using htaccess

How to Protect access to a specific file on server using htaccess
Category: Web-Hosting
Posted:
Views: 1250
Comments: 0 [Post]
Synopsis: If you want to block with the file name myimage.jpg. This htaccess code will prevent the viewing of this file.

If you want to block with the file name myimage.jpg. This htaccess code will prevent the viewing of this file.

# prevent access of a certain file

 order allow,deny
 deny from all


Comments on How to Protect access to a specific file on server using htaccess

Start the conversation by being the first to comment!

Share comments

Your Name: *
Comments: *
Please Note: HTML Markup will be automatically removed.
The ability to post urls has been disabled by the site administrator.
*
Type the characters you see in the picture:

*