Closed (fixed)
Project:
Troll
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2007 at 15:15 UTC
Updated:
23 May 2009 at 05:40 UTC
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.
Comments
Comment #1
Offlein commentedMine 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".
Comment #2
mgiffordShouldn'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
Comment #3
deekayen commentedI'm adding lots of watchdog calls to hook_boot() tonight.