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
Protovis - Visualization for JavaScript via Canvas
Viewed 1036 times since Sun, Jan 3, 2010
Best Free Web Icons for Different Purposes
Viewed 1235 times since Mon, Dec 28, 2009
Advanced Backup System - PHP Backup Script
Viewed 1233 times since Wed, Jul 28, 2010
Google Web Toolkit - Version 2 Released
Viewed 1106 times since Tue, Dec 15, 2009
jQuery Dropdown Check List
Viewed 1429 times since Thu, Jan 14, 2010
How can I change session timeout value?
Viewed 1031 times since Tue, Apr 27, 2010
PHP For Android Project - Interview with Lead Developer
Viewed 1094 times since Mon, Jul 26, 2010
imgAreaSelect - jQuery Plugin To Select Areas On Images
Viewed 1431 times since Thu, Dec 31, 2009
Admin Skins - Constellation Complete Admin Skin
Viewed 1344 times since Thu, Aug 12, 2010