Is there a log?
yelvington - March 10, 2007 - 15:15
| Project: | Troll |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I have been struggling for the last week or so with anonymous bot-postings, and I've banned the IP address that Watchdog recorded for them (202.83.212.236), but the ban does not seem to have had any affect at all. Every morning I find another dozen or so comments in the admin queue. Does this module record a log?
Drupal 5.1, comments set to allow anonymous posting with administrative approval required.

#1
Mine has created a new watchdog message type of "Troll". I see an "IP Ban: XXX.XXX.XXX.XXX" message appear whenever a banned IP tries to access a page.. Dunno about Blacklists. I feel that the wording "IP Ban:" should change, however, because it sounds like an admin has banned that IP address, instead of "This specific IP ban has been called".
#2
Shouldn't everytime something is blacklisted that the log is enacted?
Also, might be useful to know what page it was called on. Maybe something like:
18 function troll_init() {
19 if (troll_is_blacklisted()) {
20 watchdog('troll', 'IP is blacklisted: '. $_SERVER['REMOTE_ADDR'], l(t('administer'), 'admin/settings/troll/ip_ban/'), WATCHDOG_NOTICE);
Like with CAPTCHA it would be good to know how many trolls have been blocked and what they are. I'm getting complaints about having too many false positives on trolls.
Mike
#3
I'm adding lots of watchdog calls to hook_boot() tonight.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.