IP Ban

Component ID

2779867

Component name

IP Ban

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

947

Component created

Component changed

Component body

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.