Question about the .htacces file and blocking countries

Discussion in 'Apache' started by BooZzZ, Aug 26, 2008.

  1. #1
    Hey,

    My .htacces file contains this:

    # -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 myurl.com
    AuthUserFile /home/myurl/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/myurl/public_html/_vti_pvt/service.grp

    Where do I add stuff like this? Do I just need to replace the <Limit GET POST> ... </Limit> with this?

    <Limit GET HEAD POST>
    order allow,deny
    deny from 58.147.128.0/19
    deny from 117.55.192.0/20
    deny from 121.100.48.0/21
    deny from 125.213.192.0/19
    deny from 202.56.176.0/20
    deny from 202.86.16.0/20
    deny from 203.215.32.0/20
    deny from 210.80.0.0/19
    deny from 210.80.32.0/19
    allow from all
    </LIMIT>

    Thanks in advance!
     
    If someone posts a solution, use the "Best Answer" link in their post to pick it as the best answer.
    BooZzZ, Aug 26, 2008 IP
  2. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just replace the <Limit GET POST> ... </Limit> with the new <Limit GET HEAD POST>...</Limit>
     
  3. BooZzZ

    BooZzZ Guest

    Best Answers:
    0
    #3
    Just like I thought, just wanted to make sure.

    Thanks anyway, thread can be closed.
     
    BooZzZ, Aug 26, 2008 Set Best Answer IP