Article Diary - General Knowledge Digest

How to prevent access to a specific file on server using htaccess?

If you want to block with the file name abc.jpg, the followig htaccess code will prevent the viewing of this file.
# prevent access of a certain file

order allow,deny
deny from all
Put this code in your .htaccess file.
0 (0)
Article Rating (No Votes)
Rate this article
Attached Files
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
dygraphs JS Charts - Free JavaScript Charts
Viewed 1195 times since Sun, Dec 13, 2009
How to change default web page using htaccess?
Viewed 1451 times since Sun, Mar 14, 2010
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
25 Graph & Chart Solutions For Web Developers
Viewed 33780 times since Mon, Feb 1, 2010
Axiis - Open Source Data Visualization Framework
Viewed 1411 times since Thu, Jan 7, 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