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.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
New Tags Introduced in HTML5
Viewed 1457 times since Sat, Apr 3, 2010
tgrdfgdgfdg
Viewed 1076 times since Sun, Jan 17, 2010
Free JavaScript Charts Library - JS Charts
Viewed 1156 times since Sun, Dec 13, 2009
jQuery Slider from a Select Element
Viewed 2587 times since Thu, Jan 14, 2010
Easy Slider jQuery Plugin - Easy Image or Content Slider
Viewed 1598 times since Tue, Jan 12, 2010
Search Engine Optimization: Tags of Importance for SEO
Viewed 1076 times since Tue, Oct 12, 2010
How can I change session timeout value?
Viewed 1060 times since Tue, Apr 27, 2010
How to redirect an old domain to a new domain using htaccess?
Viewed 892 times since Sun, Mar 14, 2010
What is new in HTML 5?
Viewed 1173 times since Sat, Apr 3, 2010