Trigger on 403 "Access Denied" events

Created on 28 March 2023, over 1 year ago
Updated 10 January 2024, 11 months ago

Problem/Motivation

Sometimes it's desirable to return a 403 error, rather than a 404 error, when bots make suspicious requests, but doing so completely bypasses the protection offered by this module.

Proposed resolution

Update the handleBannedUrls() method so it is triggered on AccessDeniedHttpException, as well as NotFoundHttpException.

✨ Feature request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jstoller

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024