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). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). 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.

Parliament Protect

1 sites No security coverage
View on drupal.org

This module blocks visitors from specified IP address ranges, such as those belonging to UK Parliament, and redirects them to a custom page or a satirical form. It also logs access attempts from these banned ranges.

Protect your website from UK Parliament!

The wildly unpopular and ill-conceived Online Safety Act is now in full force in the UK. As a result it's important to make sure that visitors from UK Parliament are safe from the content of your site.

Parliament Protect will block all UK Parliament IP address range visitors from accessing any content and redirect them to either a silly, satirical form, or a custom message of your choice. The module will also log any attempts at visits from the configured IP ranges and stores the number of times that happens.

The form contains many, many fields, but the data isn't actually saved when submitted. It's more of an online safety joke than anything else. But since the IP ranges that trigger the redirect are customisable, you can theoretically use this module for something other than blocking UK Parliament.

Just configure the module to show a custom title and message instead of the form. That way you can block any individual IP address or range of addresses and return a themed page instead of just a basic response like the core Ban module.

Demo site

https://pp.deliciouscreative.com

Clicking any internal link on the demo site will redirect you to the protection page. This is done by enabling debugging in the module and illustrates the behaviour when someone visits from a banned IP range or address.

"AI" Policy

No "AI" was used in the creation of this module.

No "AI" contributions are welcome.

Activity

Total releases
4
First release
Aug 2025
Latest release
11 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
1.0.2 Stable Aug 6, 2025
1.0.1 Stable Aug 6, 2025
1.0.0 Stable Aug 5, 2025
1.0.x-dev Dev Aug 5, 2025