Correctly Setting the .htaccess file.
Posted: Thu Dec 11, 2008 8:24 pm
Hi
Ok, Here of late well present actually, I have had some issues with sites, I never had none with in over a year they have been up. I was reading posts about the php.ini file. I know the php.ini are similar but quite different in ways.
Can someone tell me the correct way to have a excellent .htaccess file on the server to help stop security problems.
This .htaccess files was edited from a friend of mine, so after seeing many examples, I don't think mine is set correctly and could be causing problems for me now.
Example of .htaccess file I have :
_____________________________
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName http://www.mydomain.info
AuthUserFile /home/xxxx/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/xxxxxs/public_html/_vti_pvt/service.grp
php_flag register_globals on
I have been doing php for a few years and I am still new very new at some od the major issues with it, settings etc. And, I would like to know if this is set right or what I need to do to make it more secure. Also, the correct way to make sure of security in a php.ini.
Thanks
Ok, Here of late well present actually, I have had some issues with sites, I never had none with in over a year they have been up. I was reading posts about the php.ini file. I know the php.ini are similar but quite different in ways.
Can someone tell me the correct way to have a excellent .htaccess file on the server to help stop security problems.
This .htaccess files was edited from a friend of mine, so after seeing many examples, I don't think mine is set correctly and could be causing problems for me now.
Example of .htaccess file I have :
_____________________________
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName http://www.mydomain.info
AuthUserFile /home/xxxx/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/xxxxxs/public_html/_vti_pvt/service.grp
php_flag register_globals on
I have been doing php for a few years and I am still new very new at some od the major issues with it, settings etc. And, I would like to know if this is set right or what I need to do to make it more secure. Also, the correct way to make sure of security in a php.ini.
Thanks