How to prevent access to a specific file on server using htaccess?
Article ID: 387 | Rating: Unrated | Last Updated: Sun, Mar 14, 2010 at 3:44 PM
If you want to block with the file name abc.jpg, the followig htaccess code will prevent the viewing of this file.
Put this code in your .htaccess file.
# prevent access of a certain file
deny from all
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
New Tags Introduced in HTML5
Viewed 1457 times since Sat, Apr 3, 2010
Viewed 1076 times since Sun, Jan 17, 2010
Viewed 1156 times since Sun, Dec 13, 2009
jQuery Slider from a Select Element
Viewed 2587 times since Thu, Jan 14, 2010
How can I change session timeout value?
Viewed 1060 times since Tue, Apr 27, 2010
What is new in HTML 5?
Viewed 1173 times since Sat, Apr 3, 2010