From WikiTemp, the GBAtemp wiki
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
The '''Spambot''' extension is a quick extension written for use on the GBAtemp Wiki. It combines a series of actions that are often used against spambots to make it easier for wiki sysops to clean up the wiki.
 
The '''Spambot''' extension is a quick extension written for use on the GBAtemp Wiki. It combines a series of actions that are often used against spambots to make it easier for wiki sysops to clean up the wiki.
 
The extension has only been tested on MediaWiki version 1.18 to 1.21. It may not work on other versions.
 
  
 
== What it does ==
 
== What it does ==
* Delete all recently created pages by a user
+
When used, the following actions are all taken automaticaly:
* Rollback all latest edits from a user
+
* Delete all recently created pages by the user
* Hide all other revisions from the user
+
* Rollback all latest edits from the user
* Block the user indefinitely
+
* Hide all other revisions from the user (similar to <code>deleterevision</code>)
 +
* Block the user indefinitely (1 month for IP addresses)
 
* Hide all related recent changes logs (marked as bot edits). They can still be seen by enabling bot edits, or by going to the actual log page.
 
* Hide all related recent changes logs (marked as bot edits). They can still be seen by enabling bot edits, or by going to the actual log page.
 
* Logs to the [[Special:Log/spambot|Spambot log]] instead of the [[Special:Log/block|Block Log]].
 
* Logs to the [[Special:Log/spambot|Spambot log]] instead of the [[Special:Log/block|Block Log]].
Line 13: Line 12:
 
== Added rights ==
 
== Added rights ==
 
Two new rights are added:
 
Two new rights are added:
* '''spambot''' => Grants the ability to use the Spambot feature and protects from being spambotted.
+
* '''spambot''': Grants the ability to use the Spambot feature and protects from being spambotted.
* '''spambot-protected''' => Protects against being "spambotted" but doesn't give access to the page.
+
* '''spambot-all''': Gives the ability to use the Spambot feature on IP addresses and user accounts older than set by <code>$wgSpambotMaxAge</code>.  
 
+
* '''spambot-protected''': Protects against being "spambotted" but doesn't give access to the page.
== Installation ==
+
The source code is available upon request. Since this is not an official MediaWiki extension, I can not guarantee its stability. Usage is at own risk.
+
 
+
To install it to the wiki, add the following in the LocalSettings.php file of your wiki:
+
<pre>require_once( "$IP/extensions/Spambot/Spambot.php" );</pre>
+
 
+
You can verify the installation through [[Special:Version]].
+
 
+
The Spambot Special Page will now be available in the [[Special:SpecialPages|Special Pages List]] under the "users" group.
+
  
 
== Changelog ==
 
== Changelog ==
<pre>
+
=== Version 1.0 ===
-- Version 1.0 --
+
 
* Initial release
 
* Initial release
  
-- Version 1.1 --
+
=== Version 1.1 ===
 
* Added support for IP addresses
 
* Added support for IP addresses
 
* Can now rollback edits and hide revisions
 
* Can now rollback edits and hide revisions
* Some hardcoded strings -> I18N
+
* Some hardcoded strings moved to i18n file
 
* Overall security increase
 
* Overall security increase
</pre>
+
 
 +
=== Version 1.2 ===
 +
* Added <code>$wgSpambotMaxAge</code> to protect users older than that value of being spambotted (spammers tend to spam immediately).
 +
* Added <code>spambot-all</code> right to bypass said restriction. This right is now also needed to use the feature on IP addresses.
 +
* Code cleanup, using newer MediaWiki standards
 +
 
 +
[[Category:WikiTemp]]

Latest revision as of 02:02, 19 December 2014

The Spambot extension is a quick extension written for use on the GBAtemp Wiki. It combines a series of actions that are often used against spambots to make it easier for wiki sysops to clean up the wiki.

What it does

When used, the following actions are all taken automaticaly:

  • Delete all recently created pages by the user
  • Rollback all latest edits from the user
  • Hide all other revisions from the user (similar to deleterevision)
  • Block the user indefinitely (1 month for IP addresses)
  • Hide all related recent changes logs (marked as bot edits). They can still be seen by enabling bot edits, or by going to the actual log page.
  • Logs to the Spambot log instead of the Block Log.

Added rights

Two new rights are added:

  • spambot: Grants the ability to use the Spambot feature and protects from being spambotted.
  • spambot-all: Gives the ability to use the Spambot feature on IP addresses and user accounts older than set by $wgSpambotMaxAge.
  • spambot-protected: Protects against being "spambotted" but doesn't give access to the page.

Changelog

Version 1.0

  • Initial release

Version 1.1

  • Added support for IP addresses
  • Can now rollback edits and hide revisions
  • Some hardcoded strings moved to i18n file
  • Overall security increase

Version 1.2

  • Added $wgSpambotMaxAge to protect users older than that value of being spambotted (spammers tend to spam immediately).
  • Added spambot-all right to bypass said restriction. This right is now also needed to use the feature on IP addresses.
  • Code cleanup, using newer MediaWiki standards