Block Internet Traffic by Country

It may be difficult at times to focus on content development and link building when you and your staff are frequently distracted fighting spammers, hackers and content thieves.

As a matter of principal, you want to allow anyone in the world to view your website content. However you will likely reach a point when your content appreciates in value and starts to get noticed by the bad guys. Invariably this will happen as you build more and more quality inbound links.

One solution is to have your web host block inbound traffic by country. Inbound traffic from some countries is completely worthless to advertisers, puts a strain on resources and is often the primary source of abuse.

Maxmind offers a solution that allows you to block traffic by country. Maxmind has even published a tutorial for blocking traffic from China and Russia.

Note: This is not to say that Chinese or Russian traffic is worthless to advertisers, puts a strain on servers and disproportionately represents the source of most abuse. There are well documented cases of abuse eminating from the US, Europe, Africa and other parts of Asia and Eastern Europe. As a Search Engine Optimization (SEO) professional it is up to you to work with your web host or dedicated server provider to analyze traffic patterns and then eliminate traffic that is of low value.

  • Facebook
  • TwitThis
  • StumbleUpon
  • Digg
  • del.icio.us

, , , , , , , , , , , , , , , , , , , , ,

2 Responses to “Block Internet Traffic by Country”

  1. Administrator on July 6th, 2007 at 3:31 pm

    For blocking Chinese traffic, another probably easier solution is to enter the following in your .htaccess file:

    deny from 61.
    deny from 210.
    deny from 211.

    From there you can generate a 403 error to a redirect URL.

    Warning: This is a clumbsy, broad-brush approach that has serious ramifications. You will not only block mainland China but these IPs are also used by internet subscribers in all of Asia Pacific including Australia, New Zealand, Singapore (English speakers). And more importantly Japan, Korea and Taiwan which are rich countries and represent most of the IP allocation. Proceed with caution…

  2. Administrator on July 6th, 2007 at 3:52 pm

    Country specific language can also be filtered by browser language. For example by Chinese traffic:

    zh-cn
    zh-hk
    zh-mo
    zh-sg
    zh-tw
    zh

    Again this is only an example (we are not singling out Chinese traffic). Please use these techniques with adequate knowledge and caution.