jimjoe

Well-Known Member
Jan 31, 2002
69
0
306
I see that a typical .htaccess file in public_html, which has frontpage, looks like:

# -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 www.domainname.com
AuthUserFile /web/accountname/public_html/_vti_pvt/service.pwd
AuthGroupFile /web/accountname/public_html/_vti_pvt/service.grp

1) Sometimes we change the .htaccess file to block ip's. Is there any way to keep this .htaccess file from being overwritten? I notice that happens sometimes - i think when fp extensions are re-installed thru cpanel.

2) if i wanted to block, lets say the range 202.0.100/24 - i assume i say something like:
deny from 202.0.100/24 ?

Where would i put this, and is there any of the other commands in the above .htaccess sample i would have to change?

Thanks!