The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

.htaccess file changes on its own

Discussion in 'General Discussion' started by jimjoe, May 11, 2003.

  1. jimjoe

    jimjoe Well-Known Member

    Jan 31, 2002
    Likes Received:
    Trophy Points:
    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 PUT DELETE>
    order deny,allow
    deny from all
    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?


Share This Page