Announcement

Collapse
No announcement yet.

How To Block A Country

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Block A Country

    Hi, I am new here and would like some help if one of you knowledgeable people can help please.

    I need to block a country from being able to see my website, when you google and it comes up in the natural listings I either need it to be diverted to: http://www.bhrclinic.com/belgium_index.htm or just not available to be seen in the listings.

    Can you help and if so what do I do, I was given a code to put into the header but it did not work as I can still see the site when I google. The code is:

    <script language="JavaScript" >
    <!--
    function geoip_country_code() { return 'GB'; }
    function geoip_country_name() { return 'United Kingdom'; }
    //-->
    </script> <script>
    if (geoip_country_code() == "BE") {

    document.location.href = "http://www.bhrclinic.com/belgium_index.htm";

    }
    </script>


    Thanks in advance

Working...
X