The GeoBlocker module allows site maintainers to black-list or to white-list access to a Drupal site by countries. IP tables come from http://www.php.net/source.php?url=/include/ip-to-country.inc and are downloaded locally to speed up lookup.

Drupal 7

Drupal 7 version of the module is scheduled to be released in the next couple of weeks. The D7 branch will fix/implement most of the known and open issues.

Features

  • Supports blacklisting and whitelisting as well;
  • Prevents/Allows access to the complete site or to a subset of nodes;
  • Whitelisting of IPv4 ranges;
  • Allows robots and crawlers (Google, Yahoo!, Bing);
  • Provides a bypass geoblocker permission for role based whitelisting;
  • Never messes with the admin.
  • leaves /user/login always open

Known and Open Issues

  • Enable in the 'subset' scope to define taxonomy terms rather than nodes;
  • Crawler identification is rather ugly and limited to the three big players;
  • Add an option to redirect to a node explaining why the user is blocked;
  • Add some styling to the default 403 output;
  • Scope 'subset' isn't finished yet;
  • Provide an option to handle robots and crawlers as "normal" visitors;
  • Provide a way to include additional robots;
  • Pretify the admin interface;
  • Provide support for IPv6.

Sponsors

Joshi Consultancy Services

Supporting organizations: 
Actively maitaining

Project information

  • Created by enikola on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases