Last modified: 2014-06-22 19:18:13 UTC
It would be extremely useful to have a log of every time the spam blacklist blocks
an edit, with the URL that was blocked.
This would pin down problems on all the different wikis with filters that are too
This would also tell us whether our filters are actively blocking spam, and how
often different spams are attempted, and where.
This would also help us know when to expire filters from the spam blacklist (say,
after six months or a year of inactivity).
A recent oops with the spam blacklist revealed that spambots are hammering [[PHP]] on en at
least (the blacklist was temporarily not available and the article was spammed within six
minutes). IP checks also indicate that these attacks are being done using zombie machines
(various ISP addresses, including an AOL IP, varying often). If this log were added it might
consume a fair bit of disk.
Matches *are* logged, in the standard debug log. I suppose we could introduce some sort of aggregation table to facilitate reports on most-spammed domains and other things like that.
Can it be made available on the toolserver? We would probably want to run queries on so much data anyways.
And what about the [[MediaWiki:Titleblacklist]]? Could we have a log for it?
Is there any bug about it?
(In reply to comment #4)
> And what about the [[MediaWiki:Titleblacklist]]? Could we have a log for it?
> Is there any bug about it?
See bug 21206
Huhu, if the data are available somewhere, it would be kind if someone links to it from here and closes this bug.
It would be really a great help to have such a log (similar to the log of the abuse filter/edit filter).
Especially for coping with unblocking requests a log would be a great tool.
Marking this as easy.
I think the approach should be to log matches using abusefilter extension if that one is loaded.
(In reply to comment #9)
The abusefilter is not a good replacement for the spam blacklist. Both tools are important and they complement one another. I guess, if we moved all SBL entries to AF. This would slow down the whole thing. So there should be a individual log for the SBL for _all_ entries. This would be a great help in reducing the length of the very long lists at meta and w:en. And it would help in coping with blacklist removal requests.
Related URL: https://gerrit.wikimedia.org/r/69303 (Gerrit Change I7b1ee2b3bb02b693d695bf66d157e2c33526c919)
I've uploaded a patchset that implements logging to the standard Special:Log. I think using AF logging is a bit overkill, since all you really care about here is the link that is being added.
That sounds great! :-)
When will this be active in w:de?
(In reply to comment #13)
> That sounds great! :-)
> When will this be active in w:de?
We don't know which version it will be in until the change gets merged. Once that's done you can check https://www.mediawiki.org/wiki/MediaWiki_1.22/Roadmap
Change 69303 merged by jenkins-bot:
Log blacklist hits to Special:Log
Marking this as fixed since the patch has been merged.
https://gerrit.wikimedia.org/r/#/c/83353/ is for enabling this on WMF sites.
Searching all prevented additions for a given domain is what this request was about. But as far as I can see (e.g. at [https://en.wikipedia.org/wiki/Special:Log/spamblacklist]), it's still not possible to search for a given url or at least a domain, right?
oops, sorry, didn't see, that it's not yet available...
Searching for a specific domain will not be possible due to how the logging data is stored, however it would be trivial (I already started working on one) to write a toolserver/labs tool that allowed such searches.
(In reply to comment #17)
> Searching all prevented additions for a given domain is what this request was
> about. But as far as I can see (e.g. at
> [https://en.wikipedia.org/wiki/Special:Log/spamblacklist]), it's still not
> possible to search for a given url or at least a domain, right?
I believe the script [[commons:MediaWiki:Gadget-rightsfilter.js]] makes it possible to filter the SPAM logs to find those which refer to a specific URL.