Adding functionality to whitelist or blacklist by country. This functionality requires both the Countries and IP-based Determination of a Visitor's Country modules to be enabled, though they are not required for the module as a whole, just for this functionality.
Fixed the text in README.txt to show how to disable the module if someone locks themselves out of their site.
There have been no bug reports for two weeks after the last code updates, so we are releasing a full-release that can be covered by the Drupal security policy.
This is the initial commit of the 7.x-2.0 branch. This branch fixes a few issues, and adds some new features.
Issues fixed:
* hook_init() has been removed, and replaced with hook_boot(). This is to allow the module to work with page caching turned on.
* Removal of blocks was changed from hook_preprocess_block to hook_block_alter()
* Removal of regions was moved from hook_preprocess_page() to hook_page_alter()
* switched from using $_GET['q'] to current_page()
* switched from using 'static' to &drupal_static()
* added redirect to front page from access denied page for users who are logged in. This is for situations where a user's IP is banned, then allowed, and they hit refresh on the access denied page
* Initial beta release
* Added functionality to remove all javascript from page when IP address is restricted. This prevents any rendering of javascript based menus such as the Admin Menu module
Fixed a bug whereby the even though a user was denied access, an accessible version of the page was being shown underneath the non-accessible version of the page.