PDA

View Full Version : .htaccess dangerous?


kab_184
10-24-2003, 05:12 PM
hi
i was thinking of putting a .htaccess file in my public_html folder for 404 error page is it dangerous to put such file in such folder? i hear site can b hacked if some1 knows its there??

wat should i do?

liorean
10-24-2003, 05:46 PM
You can disallow access to .htaccess through various means. Read about it in the Apache documentation. Some of these links might be good starting points: <http://httpd.apache.org/docs/howto/auth.html>, <http://httpd.apache.org/docs/howto/htaccess.html>, <http://apache-server.com/tutorials/ATusing-htaccess.html>.

Acecool
10-26-2003, 02:52 PM
Dont put it in the root directory,

if the path to your site is

/public_html/
then put it in
/

liorean
10-26-2003, 04:34 PM
According to the Apache documentation, placing .htaccess in / is not allowed in most configurations. You can protect .htaccess by denying access to it from http altogether, or by requiring authorisation for it.