This project is not covered by Drupal’s security advisory policy.
A large majority of all websites have content that's only relevant to a country or region. This can be problematic because visitors from other countries or regions may not exactly be visiting your site with your best interests in mind.
This module allows you configure the site to be "read only" or "complete ban" for a visitor based on individual IP addresses or by country (using IP address lookup).
For complete bans, you can redirect the user to any page you choose and/or display an "error" message. There is nothing preventing you from entering an external address as the page to redirect to.
"Read only" will allow you to disable blocks for visitors from a country or IP address set to "Read only", and disallows access to all /user pages. If you also need to disable forms, it is recommended you install the Read only mode module.
This module also allows you to specify blocks to disable for "Read only" mode users. For example, it really makes no sense to enable the user login block in "Read only" mode. You should also consider disabling blocks on the page you set to redirect to for "complete ban" users.
Requirements
This module depends on the ip2country module, which, per the module page, can take a few minutes to install.
Thank you to Samco-AMC for sponsoring part of this module's development.
Project information
- Module categories: Administration Tools, Access Control, Site Structure
- 155 sites report using this module
- Created by webdrips on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Drupal 9 and 10 compatible release
Development version: 2.x-dev updated 11 Sep 2023 at 08:13 UTC
Development version: 7.x-1.x-dev updated 10 Oct 2016 at 10:08 UTC