How to Block my Website in China

Discussion in 'HTML & Website Design' started by cssgallerylist, Jan 3, 2012.

  1. #1
    Is there any way to block my website in China and some other asian countires.
     
    cssgallerylist, Jan 3, 2012 IP
  2. Ella_Z.

    Ella_Z. Peon

    Messages:
    544
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Yes. To block access to your website at some countries, you need to obtain ip to location database (there are even free ones available). You can add the access logic to the server or to the separate pages. To add it to the web server, you can use MaxMind service.
     
    Ella_Z., Jan 3, 2012 IP
  3. nitinleew

    nitinleew Well-Known Member

    Messages:
    4,533
    Likes Received:
    271
    Best Answers:
    1
    Trophy Points:
    165
    #3
    Huh?why do you hate China?
     
    nitinleew, Jan 3, 2012 IP
  4. cssgallerylist

    cssgallerylist Member

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    I got a lot of spam from there
     
    cssgallerylist, Jan 3, 2012 IP
  5. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #5
    Eat the spam. Free food is free food.
     
    mmerlinn, Jan 3, 2012 IP
  6. hubsol

    hubsol Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #6
    yes you can block your website in china by cpanel, just contact to your hosting company and request them to block it
     
    hubsol, Jan 4, 2012 IP
  7. devilthemes

    devilthemes Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #7
    hope you can block ip of china from china from range . Ex 192.184.192.1-192.184.192.225
     
    devilthemes, Jan 5, 2012 IP
  8. nitinleew

    nitinleew Well-Known Member

    Messages:
    4,533
    Likes Received:
    271
    Best Answers:
    1
    Trophy Points:
    165
    #8

    well.I am Chinese,I can help you....:)
     
    nitinleew, Jan 5, 2012 IP
  9. ScottAN

    ScottAN Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I'm really not sure why you are banning traffic from China. You have the benefit to allow your site to be accessed from anywhere, so why prevent that? I think you can implement some other features on your site to fight spam rather than blocking off an entire country of hundreds of millions of people...
     
    ScottAN, Jan 5, 2012 IP
  10. OSSEO

    OSSEO Active Member

    Messages:
    1,430
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    53
    #10
    There is lots of solution for stopping spam . but do not restrict country may be you will loss business.
     
    OSSEO, Jan 6, 2012 IP
  11. DanIonescu

    DanIonescu Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It's quite easy. However, you need to have a list of IPs (or IP classes) and put a code like this in your header:
    
    if (isBanned($_SERVER["REMOTE_ADDR"])) { die("You have been banned."); }
    
    Code (markup):
    You can do this via .htaccess too or via your firewall.
     
    DanIonescu, Jan 6, 2012 IP
  12. thewoodcutter

    thewoodcutter Active Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #12
    hey banning a whole country is not good, you will lose a lot of traffic as china has a huge population and those guys can make the ipad3 even before apple releases it..
     
    thewoodcutter, Jan 7, 2012 IP
  13. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #13
    Huh? Are you ALLOWING them to put spam ON YOUR WEBSITE? Looks like to me that you need to fix the SECURITY of your website. Blocking China will NOT stop the spam, just slow it down. Fixing your SECURITY will stop the spam.
     
    mmerlinn, Jan 7, 2012 IP
  14. nEW_boY

    nEW_boY Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Try reCaptcha or something and dont ban the whole country or you will loose a great traffic, dont you think so ?
     
    nEW_boY, Jan 9, 2012 IP