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.
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
Free IP to Country, IP to City Database & API
Viewed 928 times since Thu, Dec 31, 2009
What is jQuery?
Viewed 556 times since Tue, Dec 1, 2009
30 High Quality Charts & Graphs for Web Developers
Viewed 2053 times since Wed, Mar 23, 2011
TipTip - jQuery Tooltip Plugin
Viewed 711 times since Thu, Jan 28, 2010
OpenCart - Open Source Shopping Cart
Viewed 924 times since Fri, Jan 1, 2010
Tiny Flash MP3 Audio Player
Viewed 665 times since Wed, Jan 6, 2010
Advanced Backup System - PHP Backup Script
Viewed 763 times since Wed, Jul 28, 2010
SEO (Search Engine Optimization) vs SEM(Search Engine Marketing)
Viewed 532 times since Mon, Jul 12, 2010
tgrdfgdgfdg
Viewed 623 times since Sun, Jan 17, 2010
MENU