The path2ban module allows users to block web scanner's attacks from individual IP addresses.

The module maintains a list of suspicious paths. All attempts to scan these paths will be logged. Users can add or remove entries from this list.

  • admin.php
  • admin/index.php
  • bitrix/admin/index.php
  • administrator/index.php
  • wp-login.php
  • and others.

The module can send notification emails to administrator.

This module will start working after you enable it.
You can setup module on configuration page (admin/config/people/path2ban).
Default values:
path2ban_threshold_limit = 5
path2ban_threshold_window = 3600
Means that an IP will be banned after 5 visits to suspicious paths in an hour.

Drupal 8

For a module that provides similar functionality under Drupal 8 please see Drupal Perimeter Defence.

Project information

Releases