How to prevent access to a specific file on server using htaccess?
Article ID: 387 | Rating: Unrated | Last Updated: Sun, Mar 14, 2010 at 3:44 PM
If you want to block with the file name abc.jpg, the followig htaccess code will prevent the viewing of this file.
Put this code in your .htaccess file.
# prevent access of a certain file
deny from all
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
What is new in HTML 5?
Viewed 1195 times since Sat, Apr 3, 2010
5 Best Online Diagram Designing Tools
Viewed 13035 times since Sat, Jan 30, 2010
Open Source Web Analytics Framework
Viewed 1012 times since Sat, Jan 30, 2010
What is jQuery?
Viewed 981 times since Tue, Dec 1, 2009
Featured Items Widget with jQuery
Viewed 1453 times since Sun, Dec 27, 2009