Last modified: 2013-07-25 09:47:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50491, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48491 - Deprecate the use of wgSpamRegex in InitialiseSettings.php in favor of AbuseFilter filters
Deprecate the use of wgSpamRegex in InitialiseSettings.php in favor of AbuseF...
Status: NEW
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
wmf-deployment
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-15 02:42 UTC by MZMcBride
Modified: 2013-07-25 09:47 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2013-05-15 02:42:49 UTC
From <https://noc.wikimedia.org/conf/InitialiseSettings.php.txt>:

---
'wgSpamRegex' => array(
	# added dvd thingy against many spamming idiots 2007-05-02 river
	# Removed, 2007-05-15 -- TS
	'default' => array(
		'/overflow\s*:\s*auto\s*;\s*height\s*:|<div[^>]*font-size[^>]*font-color:\s*transparent[^>]*>/i',
		'/avril\.on\.nimp\.org/i', // http://en.wikipedia.org/wiki/Special:Contributions/Hochitup
		'/\.on\.nimp\.org/i', // per MrZ-man 2008-11-02 -- brion
		// bug 15063, these won't last:
		'/<TR>(<TD BGCOLOR=["\']?#......["\']?>(\.|We|are|Anonymous|)+<\/TD>){20,}<\/TR>/i',
		'/<table>.+?(<td bgcolor.+?){400,}.+?<\/table>/i',
		// Weird thingy http://en.wikipedia.org/w/index.php?title=Hellboy:_Sword_of_Storms&oldid=245477898&diff=prev
		'/<span onmouseover="_tipon/',
		// Reported on id.wikipedia.org 2008-12-17 Tim
		'/FIELD_MESSAGE_/',
		// Plaintext link spam https://bugzilla.wikimedia.org/show_bug.cgi?id=16597
		'/[ww]{3}[\..][aAa][nn][oo]n[tT][aa][ll][kk][\..][cc][oo][mm]/ui',
	),
	# Multiple requests on IRC -- TS 2006-07-11
	'commonswiki' => '/overflow\s*:\s*auto\s*;\s*height\s*:|kryptonazi|freizeit-diktator/i',
	# yoniDeBest on IRC -- TS 2007-04-16
	# removed upon yoni's request 'hewiki' => '/kazach/i',
),
---

It looks like we now log SpamRegex hits. A shell user should take a look at those at some point and figure out whether we still need all of these rules, particularly now that we have AbuseFilter (locally and globally), which has on-wiki logging and controls.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links