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
Web Application Security Tools & Scanner Applications
Viewed 1528 times since Mon, Mar 22, 2010
Create A Page Peel Effect With CSS & jQuery
Viewed 1184 times since Tue, Jan 5, 2010
Tiny Flash MP3 Audio Player
Viewed 1145 times since Wed, Jan 6, 2010
50 Free And Quality Web Icons
Viewed 1816 times since Tue, Jan 5, 2010
TipTip - jQuery Tooltip Plugin
Viewed 1225 times since Thu, Jan 28, 2010
What is jQuery?
Viewed 1026 times since Tue, Dec 1, 2009
How to password protect folder/files using htaccess file?
Viewed 1176 times since Sun, Mar 14, 2010
jQuery MultiSelect Plugin with ThemeRoller Support
Viewed 2301 times since Thu, Feb 4, 2010
Which hosting plans support IIS Mod-Rewrite?
Viewed 5256 times since Sat, Oct 10, 2009
ZeusCart | Feature Rich Open Source E-Commerce System
Viewed 1783 times since Thu, Jul 15, 2010