Suppress dblog messages re:banned IP address

Created on 10 December 2017, almost 7 years ago
Updated 10 November 2023, about 1 year ago

Do you think it would be possible to add an option to stop logging banned IP addresses to the DB Log/watchdog?

This module has been an invaluable resource to me to keep spam traffic and hack attempts under control. In fact, it bans SO many visitors that my DB log is FULL of "Banned IP Address xxxxxxxxxxx" messages. It's nice to see them, but there's so many that it hardly makes a difference. I can always view the list of banned IP addresses if I need to look up a specific one.

Or is there another way to do this that I'm not aware of?

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States TynanFox

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands BrankoC

    You might be able to use hook_watchdog() to delete the log entry before it gets saved to the database. However, it seems there might be quite some Drupal trickery involved in getting it to work (e.g. order in which hooks are called, calling a hook early in the bootstrap, forcing dblog_watchdog() to abort and so on). I haven't tried this myself, so I do not know if it would work, nor if it would be worth it.

Production build 0.71.5 2024