Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Parliament Protect

1 sites No security coverage Drupal 10–11
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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Aug 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

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