Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Drupal Perimeter Defence

Security covered Under active development 11,005 sites

Perimeter is a Drupal module designed to enhance site security by automatically banning IP addresses that send suspicious requests. It helps protect your site from bots and hackers by blocking access based on configurable URL patterns. The module is optimized for performance and integrates with Drupal's core ban functionality.

Basic perimeter defence for a Drupal site. This module bans the IPs who send suspicious requests to the site. The concept is: if you have no business here, go away.

Use the perimeter module if you get a lot of requests to 'wp-admin' or to .aspx urls on a Linux server, or other similar requests. The URL patterns that result in a ban can be configured in the admin settings

The module is optimized for performance and designed to be activated when a Drupal site is targeted by hackers or bots.

How to use

Enable the module, configure a few banned patterns in the admin page, and check your site logs after a while.

Use the core's ban module to manage banned IPs.

Note: Before testing this module from your own IP, make sure you can delete your IP from the ban_ip table in your Drupal site's database.

Future improvements

  • Configure a threshold for banning
  • Allow other modules to know about the ban, and to stop it.
  • Ban on access denied events
  • Upgrade from path2ban

Important upgrade message

The module administration form is protected by the 'Administer site settings' permission, which is too wide for the use of the module. We have a merge request to create a new permission for the module administration, and it is expected to be merged on the first release candidate of the 3.1 version.
This is an important change, and we want to advise site owners to test their configurations before and after upgrading to the upcoming 3.1 version.

Drupal 7

For a module that provides similar functionality under Drupal 7 please see path2ban.

Companion Modules

  • auto_unban augments core's ban module to automatic unban IP's after a period of time. This is best used with automatic ban modules such as perimeter.

Alternative modules

Drupal 10–11

Ask your assistant about Drupal Perimeter Defence

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • ban Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
8
Tracked since
Mar 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
3.0.4 Stable 10–11 Aug 28, 2024
3.0.3 Stable 10–11 Aug 27, 2024
3.0.2 Stable 10–11 Aug 27, 2024
3.0.1 Stable 10 Jan 10, 2024
3.0.0 Stable 10 Nov 25, 2023
3.0.0-rc4 Pre-release 10 Jun 29, 2023
3.0.0-rc3 Pre-release 10 Mar 23, 2023
3.0.0-rc2 Pre-release 10 Mar 23, 2023