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
PHP Sound Captcha
Viewed 4653 times since Sun, Apr 11, 2010
Meerkat - jQuery Plugin for Promotional Content
Viewed 624 times since Tue, Dec 29, 2009
Create A Page Peel Effect With CSS & jQuery
Viewed 662 times since Tue, Jan 5, 2010
Protovis - Visualization for JavaScript via Canvas
Viewed 660 times since Sun, Jan 3, 2010
45 jQuery Navigation Plugins and Tutorials
Viewed 1643 times since Thu, Jan 28, 2010
ValidForm Builder - Creating Forms With Validation
Viewed 624 times since Wed, Apr 21, 2010
10 Most Popular JavaScript Frameworks
Viewed 670 times since Thu, Jul 8, 2010
UI Patterns - User Interface Design Pattern Library
Viewed 721 times since Thu, Dec 31, 2009
IE6 CSS Fixer - Web-Based IE6 CSS Fix Tool
Viewed 725 times since Thu, Dec 31, 2009
10 AJAX based PHP WebMail Clients
Viewed 773 times since Mon, Jul 26, 2010