Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

IP Ban

No security coverage

Part of the IP ecosystem · 8 projects

View on drupal.org

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.0-alpha1 Pre-release Sep 4, 2023
2.x-dev Dev Sep 4, 2023