Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

Blocking IP ranges or countries in Drupal 7

Jul 19, 2012 by carebare
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 votes
Jul 19, 2012 by TopNet
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