Article Diary - General Knowledge Digest

How to restrict access to your .htaccess file?

By adding the following code to your htaccess file will prevent hacker’s attempt to access your htaccess file. It will display a 403 error message on their browser if they try to access .htaccess file.
# secure htaccess file

order allow,deny
deny from all
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
How to change the file type using htaccess?
Viewed 1236 times since Sun, Mar 14, 2010
Quick Tables for Showing & Updating DB Data
Viewed 1398 times since Sun, Dec 27, 2009
Tiny Flash MP3 Audio Player
Viewed 1236 times since Wed, Jan 6, 2010
Modify HTTP Headers in PHP with Examples
Viewed 1330 times since Wed, Mar 10, 2010
Open Source Trouble Ticket System - Jutda Helpdesk
Viewed 2480 times since Sat, Jan 9, 2010
jqPlot - jQuery Charts & Plotting Plugin
Viewed 1650 times since Sat, Jan 9, 2010
JavaScript Tree Menu Component - jsTree Menu
Viewed 2374 times since Sat, Jan 9, 2010