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.
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
PHP Questions for Interview with Answers
Viewed 977 times since Wed, Feb 24, 2010
How to redirect an old domain to a new domain using htaccess?
Viewed 617 times since Sun, Mar 14, 2010
ValidForm Builder - Creating Forms With Validation
Viewed 681 times since Wed, Apr 21, 2010
How to change the file type using htaccess?
Viewed 717 times since Sun, Mar 14, 2010
PHP Sound Captcha
Viewed 5699 times since Sun, Apr 11, 2010
Google Skipfish - Web Application Security Scanner
Viewed 821 times since Mon, Mar 22, 2010
Admin Skins - Constellation Complete Admin Skin
Viewed 980 times since Thu, Aug 12, 2010
Meerkat - jQuery Plugin for Promotional Content
Viewed 688 times since Tue, Dec 29, 2009
SEO Poisoning - What are SEO Poisoning Attacks?
Viewed 976 times since Mon, Apr 5, 2010
MENU