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). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

This module allows administrators to restrict access to specific URLs based on user roles. You can define which roles have access to certain paths on your site.

Description

The URL Restriction By Role (url_restriction_by_role) module provides a simple way for users to
configure restrictions in the access of urls using the roles available for the platform.

About the different releases

Starting with 2.0.0 the character '*' is supported as a wildcard.

Requirements

This module requires no modules outside of Drupal core.

Installation

Install as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-mod... for further information.

Configuration

The configuration page can be found in admin/config/search/path/url-restriction-by-role.

  • Set the url to be restricted in the form;
  • Enable or disable the urls to be restricted;
  • Chose the only roles that should have access to the urls;
  • Click Save.

Activity

Total releases
3
First release
Mar 2025
Latest release
4 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.1 Stable Feb 26, 2026
2.0.0 Stable Mar 31, 2025
2.0.x-dev Dev Mar 31, 2025