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
10 AJAX based PHP WebMail Clients
Viewed 1901 times since Mon, Jul 26, 2010
Open Source Trouble Ticket System - Jutda Helpdesk
Viewed 2238 times since Sat, Jan 9, 2010
What is new in HTML 5?
Viewed 1257 times since Sat, Apr 3, 2010
Inline Form Validation With jQuery
Viewed 1545 times since Sat, Jan 9, 2010
PHP Questions for Interview with Answers
Viewed 1653 times since Wed, Feb 24, 2010
Advanced Backup System - PHP Backup Script
Viewed 1362 times since Wed, Jul 28, 2010
Modify HTTP Headers in PHP with Examples
Viewed 1272 times since Wed, Mar 10, 2010
10 Tips for Writing Better CSS Code
Viewed 1389 times since Fri, Nov 27, 2009