Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Restrict route by IP module provides an interface to manage route restriction by IP address.
Features
- Access restriction with a set of IP and/or IP range.
- IP range can be defined as follow:
- IP range with "-" (x.x.x.x-x.x.x.x)
- IP range with * (x.x.x.*)
- CIDR IP range (x.x.x.x/24)
- You can remove or just disable a route restriction
- You can see a preview of the impacted routes.
- Routes can be defined by:
- route name
- path
- path with wildcard (using % like /admin/%/content)
- regular expression
Installation
- Download or install with composer
- Enable restrict_route_by_ip
- go to /admin/config/system/restrict_route_by_ip to define all restrictions
Supporting organizations:
Project information
- Module categories: Security, Access Control
- Ecosystem: Security
- 91 sites report using this module
- Created by OlivierG on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
2.0.0-beta1
released 10 October 2023
Works with Drupal: ^8 || ^9 || ^10
3379068 - Added D10 compatibility and fix coding standards and new HTTP method restriction options.
Install: