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
10 Tips for Writing Better CSS Code
Viewed 1474 times since Fri, Nov 27, 2009
What is new in HTML 5?
Viewed 1335 times since Sat, Apr 3, 2010
CSS Positioning - Absolute, Relative & Fixed
Viewed 1672 times since Thu, Dec 3, 2009
OpenCart - Open Source Shopping Cart
Viewed 1829 times since Fri, Jan 1, 2010
Easy Slider jQuery Plugin - Easy Image or Content Slider
Viewed 1949 times since Tue, Jan 12, 2010
PHP Sound Captcha
Viewed 11127 times since Sun, Apr 11, 2010
Search Engine Optimization: Tags of Importance for SEO
Viewed 1220 times since Tue, Oct 12, 2010
PHP For Android Project - Interview with Lead Developer
Viewed 1372 times since Mon, Jul 26, 2010
Create Interactive JavaScript Charts With Highcharts
Viewed 1524 times since Fri, Dec 4, 2009