Blocking IP ranges or countries in Drupal 7

1,592 views
asked Jul 19, 2012 in Website Builder by carebare (1,420 points)
hi
I have a drupal website and I want to block a country from accessing me website. I want to do by either blocking the range for that country or blocking that country’s code, but I’m not sure how to do this in Druap 7, can anyone please advise me?
Thanks and regards

1 Answer

0 like 0 dislike
answered Jul 19, 2012 by TopNet (10,360 points)
You can use the block.api.php module this page has further details
http://api.drupal.org/api/drupal/modules!block!block.api.php/7
and you can check the country IPs here http://drupal.org/project/ip_ranges
...