Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module restricts access to Drupal features, such as logins and role assignments, based on IP addresses or IP ranges. It allows administrators to define which users can log in and which roles are available from specific IP locations.

This module restricts Drupal features to certain IP addresses or IP address ranges. It can restrict logins and/or role acccess.

Restrict login by IP

When a user is restricted, that user will not be able to log in outside the defined IP address ranges. It is also possible to specify global IP address ranges, which apply to ALL users, including user1. Following a denied log-in attempt, a user is redirected to an error page as specified by the site administrator.

Restrict role by IP

When a role is restricted, that role will not be available to users outside the defined IP address ranges. Role restriction does not affect users' ability to log in, only the availability of the restricted role to users. Role restrictions are available for all roles, except "anonymous user" and "authenticated user".

Any other suggestions are welcome, and please report any problems.

Thanks.

Module Sponsors

6.x-3.x version sponsored by UNC Charlotte.

6.x-2.x, restrict by role addition, sponsored by panthar.

Activity

Total releases
4
First release
May 2025
Latest release
1 week ago
Releases (12 mo)
2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
8.x-4.0-beta4 Pre-release Jul 10, 2026
9.x-dev Dev Jun 21, 2026
8.x-4.0-beta3 Pre-release Jul 8, 2025
8.x-4.0-beta2 Pre-release May 23, 2025