public static function PerimeterSubscriber::getSubscribedEvents in Drupal Perimeter Defence 2.0.x
Same name and namespace in other branches
- 8 src/EventSubscriber/PerimeterSubscriber.php \Drupal\perimeter\EventSubscriber\PerimeterSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ PerimeterSubscriber.php, line 33
Class
- PerimeterSubscriber
- On page not found events, ban the IP if the request is suspicious.
Namespace
Drupal\perimeter\EventSubscriberCode
public static function getSubscribedEvents() {
$events['kernel.exception'][] = [
'handleBannedUrls',
];
return $events;
}