Extension:SmiteSpam

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
SmiteSpam

Release status:Extension status stable

SmiteSpam Discourse DB.png
ImplementationTemplate:Extension#type Special page, API
DescriptionTemplate:Extension#description Provides a special page helping administrators identify and delete spam
Author(s)Template:Extension#username Vivek Ghaisas (Polybuildrtalk)
Latest versionTemplate:Extension#version 0.1
MediaWikiTemplate:Extension#mediawiki 1.25+
Database changesTemplate:Extension#needs-updatephp Yes
LicenseTemplate:Extension#license GNU General Public License 2.0
Download
ParametersTemplate:Extension#parameters
  • $wgSmiteSpamCheckers
  • $wgSmiteSpamThreshold
  • $wgSmiteSpamIgnoreSmallPages
  • $wgSmiteSpamIgnorePagesWithNoExternalLinks
  • $wgQueryPageSize
  • $wgDisplayPageSize
Added rightsTemplate:Extension#rights

smitespam

Hooks usedTemplate:Extension#hook
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates

Translate the SmiteSpam extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

The SmiteSpam extension provides a special page "Special:SmiteSpam" helping administrators identify and delete spam pages.

Usage[edit]

Navigate to "Special:SmiteSpam" in order to run the analyzer and get a list of pages that the extension identifies as spam. You can use the interface to block users, delete pages created by them or trust a user you know to be good contributors.

The list of trusted users can be viewed and edited at "Special:SmiteSpamTrustedUsers".

Installation[edit]

  • Download and place the file(s) in a directory called SmiteSpam in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/SmiteSpam/SmiteSpam.php";
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

User right[edit]

By default, this extension can only be used by sysops. You can change it to, e.g. letting also bureaucrats use it by adding the following line to your "LocalSettings.php" file.

$wgGroupPermissions['bureaucrat']['smitespam'] = true;

Parameters[edit]

Parameter Default Value Comment
$wgSmiteSpamThreshold 0.7 Pages analyzed as having a spam "probability" higher than this will be shown on special page.
$wgSmiteSpamIgnoreSmallPages true Should SmiteSpam ignore pages smaller than 500 characters?
$wgSmiteSpamIgnorePagesWithNoExternalLinks true Should SmiteSpam ignore all pages that don't have any external links outside of template calls?
$wgQueryPageSize 500 Number of pages to analyze in one AJAX request. (Setting this too high can cause timeouts.)
$wgDisplayPageSize 250 Number of pages to display in one paginated page.

$wgSmiteSpamCheckers is a parameter that lets you choose which "checkers" you want to run and how much weight (value) you want to give to each of their reports.

By default, this is set to:

$wgSmiteSpamCheckers = array(
	'ExternalLinks' => 1,
	'RepeatedExternalLinks' => 1,
	'Wikitext' => 1,
);

Checkers[edit]

ExternalLinks

Checks how much of the text (ratio) is external links.

RepeatedExternalLinks

Checks whether there are repeated external links.

Wikitext

Checks how much wikitext is there in the contents of the page.

Screenshots[edit]

Special:SmiteSpam[edit]

An example of a SmiteSpam page that a user may be first greeted with.

Special:SmiteSpamTrustedUsers[edit]

An example of a SmiteSpam Trusted Users page.