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
Axiis - Open Source Data Visualization Framework
Viewed 1012 times since Thu, Jan 7, 2010
Google Skipfish - Web Application Security Scanner
Viewed 873 times since Mon, Mar 22, 2010
Use PHP Functions In JavaScript with PHP.JS Library
Viewed 731 times since Fri, Jan 8, 2010
Modify HTTP Headers in PHP with Examples
Viewed 870 times since Wed, Mar 10, 2010
ValidForm Builder - Creating Forms With Validation
Viewed 736 times since Wed, Apr 21, 2010
How to protect specific folder or disable directory browsing using htaccess?
Viewed 3906 times since Sun, Mar 14, 2010
Create Full Screen Slideshows With Supersized
Viewed 791 times since Tue, Jan 5, 2010
dygraphs JS Charts - Free JavaScript Charts
Viewed 757 times since Sun, Dec 13, 2009
MENU