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

Article ID: 388
Created: Sun, Mar 14, 2010
Last Updated: Sun, Mar 14, 2010
Author: Administrator

Online URL: