Drupal is a registered trademark of Dries Buytaert

parli_protect

2 sites No security coverage
View on drupal.org

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
6 months ago
Release cadence
0 days
Stability
75% stable

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