I'm wondering if anyone has a Drupal specific solution for blocking entire countries from accessing your server. My company only does business in the US so there's no point in having other countries accessing my site.

For Drupal 6, there is the Country Ban module. Is there a Drupal 7 was to do this?

1 Answer 1


this module may help you : Smart IP ,,,,

Overview Smart IP identify visitor's geographical location (longitude/latitude), country, region, city and postal code based on the IP address of the user. These information will be stored at session variable ($_SESSION) with array key 'smart_ip' and Drupal $user->data object with array key 'geoip_location' of the user but optionally it can be disabled (by role) .....

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
    – Triskelion
    Jun 13, 2013 at 15:46
  • @Triskelion done Jun 13, 2013 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.