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.

Restrict route by IP

177 sites Security covered
View on drupal.org

This module allows you to restrict access to specific routes on your Drupal site based on IP addresses or IP address ranges. You can define these restrictions using various formats, including IP ranges, wildcards, or CIDR notation, and apply them to routes identified by their name, path, or pattern.

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

  1. Download or install with composer
  2. Enable restrict_route_by_ip
  3. go to /admin/config/system/restrict_route_by_ip to define all restrictions

Activity

Total releases
3
First release
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
2.0.0-beta2 Pre-release May 7, 2025
1.3.0 Stable May 7, 2025
1.2.0 Stable Apr 24, 2025