How can i block my site in paksitan?

Discussion in 'Site & Server Administration' started by waqarhassan42, Mar 14, 2011.

  1. #1
    How can i know that what is my country main router ip address........bcz i want to block my site in pakistan so whats the procedure.
     
    waqarhassan42, Mar 14, 2011 IP
  2. mmatthew

    mmatthew Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I assume you're using Apache with mod_access installed, so the easiest way is to place a few "deny from" lines in .htaccess.

    First, you will have to find out Pakistan IP blocks:
    http://www.ipdeny.com/ipblocks/data/countries/pk.zone

    If you already have a .htaccess file in the root of your website, you will have to add lines for each IP country block from the file above. If you don't have .htaccess, just create it in the root folder of your website.

    Exemplary line:
    
    deny from 14.192.128.0/19
    
    Code (markup):
     
    mmatthew, Mar 14, 2011 IP
  3. waqarhassan42

    waqarhassan42 Member

    Messages:
    225
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    i see the list if i block these ip address then my site not open in pakistan these ip not affect other countries. thanks for your information.
    i see here 119.30.64.0/18 and also 121.52.144.0/20 and more can you tel me the difference of fist number in both ip i mean what is difference between 119 and 121 thanks again.
     
    waqarhassan42, Mar 14, 2011 IP