Blocking visitors from a certain country

8 replies
I want to block visitors from MY OWN country, in one of my niche site. because I've learned the hard way that they are not only non-converting, but also a lot of them are plagiarists and content thieves .

However, if I do so, is that mean I can't access my website anymore except from CPanel only?

stupid question I know.... but it's really bugging me. Any answers is appreciated, thanks!
#blocking #country #visitors
  • Profile picture of the author pbarnhart
    Get your IP block from:

    Country IP Blocks

    Simply find your IP in the block range, and rewrite the deny block to exclude your IP address.
    {{ DiscussionBoard.errors[5493973].message }}
  • Profile picture of the author kokopelli
    Yes, you can use that website or IP address country block generator to generate the htaccess code for blocking a country. Then just add your own IP address as an allow, for example:
    Code:
    <Limit GET HEAD POST>
    order allow,deny
    allow from 10.10.10.10 #YOUR OWN IP  
    deny from 41.70.128.0/17
    deny from 41.72.0.0/18
    deny from 41.74.240.0/20
    allow from all
    </Limit>
    Make sure you test it! If you lock yourself out by accident, you'll have to use a proxy to edit/delete the htaccess file (or ask someone elsewhere, like your host).
    Signature
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    {{ DiscussionBoard.errors[5494471].message }}
  • Profile picture of the author Pamellalovely
    Originally Posted by Viramara View Post

    I want to block visitors from MY OWN country, in one of my niche site. because I've learned the hard way that they are not only non-converting, but also a lot of them are plagiarists and content thieves .

    However, if I do so, is that mean I can't access my website anymore except from CPanel only?

    stupid question I know.... but it's really bugging me. Any answers is appreciated, thanks!
    Yes, It ofcourse a stupid question but you can the visitors of your country but why you want to block visitors of your country ???
    {{ DiscussionBoard.errors[5494713].message }}
    • Profile picture of the author Viramara
      Originally Posted by Pamellalovely View Post

      Yes, It ofcourse a stupid question but you why you want to block visitors of your country ???
      I've bad experience with them.....they stole my content, re-published it, and one of them even published it in a book, copying 5 newsletters verbatim, without giving credit to me . I want to block them from my English niche sites where I'm building a list from.
      {{ DiscussionBoard.errors[5498852].message }}
  • Profile picture of the author Milo Odin
    I'm facing this prob too like you our tragedy is same lol. @Viramara
    {{ DiscussionBoard.errors[5496107].message }}
  • Profile picture of the author AdamMc
    I wouldn't advise attempting to block any IP ranges in general. If someone wanted to access your site then they still could via a proxy server.

    If you use Google Webmaster Tools you can set/change your preferred Geographic target location to a different country other than your own, that way you can target visitors from countries with higher conversion rates
    {{ DiscussionBoard.errors[5509683].message }}
  • Profile picture of the author mortenmatras
    Did it work?
    {{ DiscussionBoard.errors[5562283].message }}

Trending Topics