User:XLinkBot/Settings

#

  1. Settings for XLinkBot
  2. Notes:
  3. Settings are loaded just before every revert.
  4. Syntax is as follows:
  5. * EVERY line starting with a "#" character is disregarded
  6. * Every non-blank line is in the format "Setting=value"
  1. Channel settings

warningchannel=#wikipedia-spam-bot-channel

  1. Setting reverting_on to 0 will stop reverting of the bot. In this case it will still revert user:Beetstra/Sandbox, which can then be used for testing.

reverting_on=1

  1. Where is the blacklist, "Wiki" = here, "SQL" = off-wiki database. Anything else will result in Wiki.

RevertListSource=Wiki

  1. This is the page XLinkBot uses to retrieve regexes that trigger his reverts.

RevertList=User:XLinkBot/RevertList|User:COIBot/RevertList|User:MER-C/RevertList.css

  1. This is the page XLinkBot uses to retrieve regexes that match whitelisted links

WhiteList=User:XLinkBot/WhiteList|User:COIBot/WhiteList

  1. This is the page XLinkBot uses to retrieve regexes that trigger his reverts FOR REFERENCES ONLY!

RevertReferencesList=User:XLinkBot/RevertReferencesList|User:COIBot/RevertReferencesList|User:MER-C/RevertReferencesList.css

  1. This is the page log page for the RevertList.

RevertListLog=User:XLinkBot/RevertList requests/log

  1. This is the page XLinkBot uses to check if a rule is on override.

OverrideList=User:XLinkBot/OverrideList|User:MER-C/OverrideList.css|User:COIBot/OverrideList

  1. This is the page XLinkBot uses to check if a rule is on hard override.

HardOverrideList=User:XLinkBot/HardOverrideList|User:MER-C/HardOverrideList.css|User:COIBot/HardOverrideList

  1. use parsed diff or unparsed diff

useparseddiff=0

  1. Do I revert to myself ("revert_once = 0") or not ("revert_once = 1")

revert_once=1

  1. Revert all edits by a user (0), or only the last one (1)?

revertoneedit=0

  1. If I do revert to myself (i.e. "revert_once = 0"), do I revert the SAME user twice
  2. (DontRevertSameUserTwice = 0) or not (DontRevertSameUserTwice = 1)
  3. !! See also setting "WithinReversiontime" !!

DontRevertSameUserTwice=1

  1. If I revert to myself (i.e. "revert_once = 0") AND revert the same user twice (DontRevertSameUserTwice = 0)
  2. then, how long is there between the previous edit by this user,
  3. WithinReversiontime=indef -> never revert
  4. WithinReversiontime=### -> if the previous addition by this user was more than ### seconds ago, revert again

WithinReversiontime=indef

  1. If editor does too many edits in a row, don't revert

maxconsequtiveedits=50

  1. Authorized bots
  2. These are the linkwatcher bots, and Beetstra (as operator for test functions)

authorized_bots=LiWa3_1|LiWa3_2|LiWa3_3|LiWa3_4|LiWa3_5|Beetstra

  1. trusted users

trusted_users=Wikimedia/Beetstra|Wikimedia/Versageek

  1. Do I try to detect if the external link is in a reference?

detect_refs=1

  1. template parameters which may contain a working url

templateparameters=url

  1. Templates to be expanded before parsing a page

expandtemplates=twitter|myspace

  1. When templates matching this regex are (now) on the page, the bot does NOT revert (except hard override),
  2. separate templates with |, is interpreted as a regex tested on source of page.

noreverttemplates=copyviocore|db-g12|db-copyvio|copypaste|db-g12|copyvio-revdel

  1. Edits larger than 2000 are not reverted

size_limit=2000

  1. autoconfirm_reason can take "age", "count", or "both". If a wrong value is used, the standard is "age".
  2. "age" -> if the account is created longer than 'autoconfirm_limit' seconds ago -> don't revert
  3. "count" -> if the account has more than 'autoconfirm_edits' edits -> don't revert
  4. "both" -> when both age AND count are too high -> don't revert
  5. "both" will result in accounts which have been created more than 'autoconfirm_limit' seconds ago, but with less than 'autoconfirm_edits' edits to be reverted.

autoconfirm_reason=both

  1. Autoconfirm age of an account in seconds, 4 * 24 * 60 * 60 = 345600 (4 days)
  2. When a user is older than this, XLinkBot does not revert, except when the link is on override

autoconfirm_limit=345600

  1. Autoconfirm edits of an account, 10.
  2. When a user has performed more edits than this, XLinkBot does not revert, except when the link is on override

autoconfirm_edits=10

  1. Autoconfirm edits of an account, 50.
  2. When a user has performed more edits than this, XLinkBot does not revert, except when the link is on override

IRC_autoconfirm_edits=50

  1. Place to report repeat spammers in the end ('AIV' on en.wikipedia):

reportplace=Wikipedia:Administrator_intervention_against_vandalism/TB2

  1. report strings for ip and users:

IPuser-reportstring=* {{IPvandal|$user}} - Keeps adding external links matching $rule ($link) after final warning (please read this note). --~~~~

user-reportstring=* {{vandal|$user}} - Keeps adding external links matching $rule ($link) after final warning (please read this note). --~~~~

  1. Other AntiVandalismBots, XLinkBot does not revert to these bots

AntiVandalismBots=VoABot II|ClueBot|SoxBot III|ClueBot NG

  1. Which namespaces are not to be reverted

NoRevertNameSpace=Talk|User|User talk|Wikipedia|Wikipedia talk|Image|Image talk|MediaWiki|MediaWiki talk|Template|Template talk|Help|Help talk|Category|Category talk|Portal|Portal talk

  1. Which namespaces to be reverted

RevertNameSpace=0

  1. If there are more than 'warningoverflow' warnings on a users' talkpage, post to 'overflow-talkpage(s)' (separated by '|') the 'overflow-warning'

warningoverflow=9

overflow-talkpage=User talk:XLinkBot|User talk:Versageek|User talk:Beetstra

overflow-warning=Please investigate the contributions of user:$user, they have received $times warnings on their talkpage.

  1. Forget that you warned a user after .. (XLinkBot remembers when he last reverted a user, if it is more than 'Forget' seconds ago, warninglevel will be reset to '2' resulting in the bot starting with the level defined in iprestartlevel/userrestartlevel below).

Forget=259200

  1. Restartlevel for an IP account ('iprestartlevel') and a useraccount ('userrestartlevel'), after the 'Forget' time, XLinkBot restarts warning from this level:
  2. 1: good faith remark without warning
  3. 2: uw-spam1
  4. 3: uw-spam2
  5. 4: uw-spam3
  6. 5: uw-spam4
  7. IPs may have changing user, start with good faith remark.

iprestartlevel=1

iprestartlevel_afterold4im=3

iprestartlevel_after4im=4

  1. users should have read the good faith message earlier, start with same level as highest level found on talkpage

userrestartlevel=highest

userrestartlevel_afterold4im=4

userrestartlevel_after4im=5

  1. 3RR checks his edits in the last 3RR_Reverttime seconds, if there are more than 3RR_Reverts in 3RR_Reverttime, XLinkBot will not revert
  2. 30 hours

3RR_Reverttime=108000

  1. Max 3 edits
  2. if there are more than 3RR_Reverts in 3RR_Reverttime, XLinkBot will not revert

3RR_Reverts=2

  1. PageLocks

PageLocks=User:XLinkBot/PageLocks|User:COIBot/PageLocks

  1. PageExcludes

PageExcludes=User:XLinkBot/PageExcludes|User:COIBot/PageExcludes

  1. UserLocks

UserLocks=User:XLinkBot/UserLocks|User:COIBot/UserLocks

  1. The next 4 settings make up the majority of the warnings:
  1. On a first revert, no warning template is added, but this message is left
  2. $pagename is replaced with the pagename where the link was added by the user.
  3. $diffurl is replaced with the link to the diff of the linkaddition by the user
  4. $rule is replaced with rule on the revertlist that matches the 'offending' link
  5. $link is replaced with a list of links that the editor has added, which match the rule on the revertlist.
  6. $user is replaced with username of the user that is being warned

firstrevertremark=Welcome to Wikipedia. Although everyone is welcome to contribute constructively to the encyclopedia, your addition of one or more external links to the page :$pagename has been reverted.

  1. First warning
  2. (uses $pagename,$diffurl,$rule,$link,$user)

firstwarning={{subst:uw-spam1|$pagename| }}

  1. Second warning
  2. (uses $pagename,$diffurl,$rule,$link,$user)

secondwarning={{subst:uw-spam2|$pagename| }}

  1. Third warning
  2. (uses $pagename,$diffurl,$rule,$link,$user)

thirdwarning={{subst:uw-spam3|$pagename| }}

  1. Fourth warning
  2. (uses $pagename,$diffurl,$rule,$link,$user)

fourthwarning={{subst:uw-spam4|$pagename| }}

  1. Only warning - user by level overrule system
  2. (uses $pagename,$diffurl,$rule,$link,$user)

onlyfinalwarning={{subst:uw-spam4im|$pagename| }}

  1. This is the explanation of why the bot reverts (non-reference links)
  2. (uses $pagename,$diffurl,$rule,$link,$user)

revertexplanation=Your edit [$diffurl here] to $pagename was reverted by an automated bot that attempts to remove links which are discouraged per our external links guideline. The external link(s) you added or changed ($link) is/are on my list of links to remove and probably shouldn't be included in Wikipedia.

  1. This is the explanation of why the bot reverts (reference links)
  2. (uses $pagename,$diffurl,$rule,$link,$user)

referenceexplanation=Your edit [$diffurl here] to $pagename was reverted by an automated bot that attempts to remove links in references which are discouraged per our reliable sources guideline (see also this list of frequently-discussed sources). The reference(s) you added or changed ($link) is/are on my list of links to remove and probably shouldn't be included in Wikipedia.

  1. now a set of messages specific to some rules (can be used to explain better why some rules are on the revertlist)
  2. the first (xxxxrule) is a list of terms that is matched with the rule and the link; separated by a |
  3. the second (xxxxtext) is the text that will be added when the xxxxrule matches the revert-rule
  1. own remarks exist for these; ownremark is a list of names separated by a |
  2. e.g. if the list below contains 'email', then you need 'emailrule' and 'emailtext' defined as well.
  3. the remarks are parsed in the order in ownremark, and the editor will only get one remark (the one of the first match).

ownremark=image|media|petition|blog|payforview|email|wiki|fallingrain|telephone1|telephone2|copyright

  1. emailrule/text
  2. (uses $pagename,$diffurl,$rule,$link,$user)

emailrule=@

emailtext=Wikipedia pages should not contain personal information such as email addresses. For more information, please read Wikipedia:Biography of Living People, specifically the section about personal information.

  1. telephone1rule/text
  2. (uses $pagename,$diffurl,$rule,$link,$user)

telephone1rule=(?

telephone1text=Wikipedia pages should not contain personal information such as telephone numbers. For more information, please read Wikipedia:Biography of Living People, specifically the section about personal information.

  1. telephone2rule/text
  2. (uses $pagename,$diffurl,$rule,$link,$user)

telephone2rule=(?

telephone2text=It appears that you inserted a telephone number to $pagename. Wikipedia pages should not contain personal information. For more information, please read Wikipedia:Biography of Living People, specifically the section about personal information.

  1. imagerule/text -> for image revert rules
  2. (uses $pagename,$diffurl,$rule,$link,$user)

imagerule=jpg|jpeg|png|gif|bmp|tif|tiff|swf|svg|flickr|piczo|foto|image|photo

imagetext=If the external link you inserted or changed was to an image file on an external server, then note that linking to such files may be subject to Wikipedia's copyright policy and therefore probably should not be linked to. Please consider using our upload facility to upload a suitable image.

  1. mediarule/text -> for media revert rules
  2. (uses $pagename,$diffurl,$rule,$link,$user)

mediarule=youtube|vimeo|liveleak|chem-toddler

mediatext=If the external link you inserted or changed was to a media file (e.g. music or video) on an external server, then note that linking to such files may be subject to Wikipedia's copyright policy, as well as other parts of our external links guideline. If the information you linked to is indeed in violation of copyright, then such information should not be linked to. Please consider using our upload facility to upload a suitable media file, or consider linking to the original.

  1. petitionrule/text, for petitions
  2. (uses $pagename,$diffurl,$rule,$link,$user)

petitionrule=petition

petitiontext=If the external link you inserted or changed was to a petition site then please note that wikipedia is not a soapbox, and that such links generally should not be included.

  1. Wikirule/text
  2. (uses $pagename,$diffurl,$rule,$link,$user)

wikirule=wikia

wikitext=If the external link you inserted or changed was to an external Wiki, then please note that these links should generally not be included (see 'links to avoid' #12).

  1. blogrule/text, for blogs, forums
  2. (uses $pagename,$diffurl,$rule,$link,$user)

blogrule=blog|forum|twitter

blogtext=If the external link you inserted or changed was to a blog, forum, free web hosting service, fansite, or similar site (see 'Links to avoid', #11), then please check the information on the external site thoroughly. Note that such sites should probably not be linked to if they contain information that is in violation of the creator's copyright (see Linking to copyrighted works), or they are not written by a recognised, reliable source. Linking to sites that you are involved with is also strongly discouraged (see conflict of interest).

  1. payforviewrule/text, for rules matching pages where the maintainer of the page on the external site gets payd when people follow the external link
  2. (uses $pagename,$diffurl,$rule,$link,$user)

payforviewrule=ehow

payforviewtext=If the external link you inserted or changed was to a site that provides payment for people visiting the that page, then note that Wikipedia is not an advertising service. Linking to sites that you are involved with is also strongly discouraged (see conflict of interest).

  1. fallingrain

fallingrainrule=fallingrain\.com

fallingraintext=If you were adding a link or reference to fallingrain.com, then you should be aware that this site is considered on wikipedia to be an unreliable source. More information can be found MediaWiki_talk:Spam-blacklist#Fallingrain.com here ([http://en.wikipedia.org/w/index.php?title=MediaWiki_talk:Spam-blacklist&oldid=357616937#Fallingrain.com permanent]). Please consider to use/find another source for the information.

  1. copyright

copyrightrule=findagrave\.com

copyrighttext=The site you were adding contains information which is in violation of copyright. Please check if the information on the page is not in violation of copyright before considering to re-add the link.

  1. end of the message, it is followed by the signature of the bot.
  2. (uses $pagename,$diffurl,$rule,$link,$user)

endtext=
If you were trying to insert an external link that does comply with our policies and guidelines, then please accept my creator's apologies and feel free to undo the bot's revert. However, if the link does not comply with our policies and guidelines, but your edit included other, constructive, changes to the article, feel free to make those changes again without re-adding the link. Please read Wikipedia's external links guideline for more information, and consult my list of frequently-reverted sites. For more information about me, see my FAQ page. Thanks!

  1. if the editor is an IP, this is added after the message.

isiptext=
If this is a shared IP address, and you didn't make the edit, please ignore this notice.

  1. edit summary used for the notification of the user on the talkpage
  2. (uses $pagename,$diffurl,$rule,$link,$user) + '$level', which is the level of the revert; e.g. level 0 gives '(good faith remark)' and level 2 gives '(second warning)';

usernotify_editsummary=BOT - Notifying user of reverted link additions to $pagename $level - links: $link

  1. edit summary used for the revert.
  2. (uses $pagename,$diffurl,$rule,$link,$user) + '$revisionid', which is the revid of page reverted to

revert_editsummary=BOT--Reverting link addition(s) by $user to revision $revisionid ($link [$rule])

  1. edit summary used for the revert when it is in a reference.
  2. (uses $pagename,$diffurl,$rule,$link,$user) + '$revisionid', which is the revid of page reverted to

revertreference_editsummary=BOT--Reverting reference addition(s) by $user to revision $revisionid ($link [$rule])

  1. In the above warnings, $link is replaced with a working link of the added link.
  2. The following setting ('disablelinkontalkpage') contains regexes (separated by |) which when matched to the added link, will
  3. NOT result in a working link on the talkpage.

disablelinkineditsummary=

disablelinkontalkpage=\bexample\.com\b

  1. hiderules contains a list of rules which get replaced, separated by a |
  2. needs three extra settings, named 'hide'+hiderule+'rule'/'text'/'where'; e.g. for hiderule 'email':
  3. hideemailrule is a regex catching the link to be hidden
  4. hideemailtext is the text that is used instead
  5. hideemailwhere contains 'editsummary' for hiding in the edit summary; 'talkpage' for the talkpage, or 'both' for both.

hiderules=email|telephone1|telephone2

hideemailrule=(?@:]+@\w+(?!\.htm)(?:\.\w+){1,3}

hideemailtext=email address removed

hideemailwhere=both

hidetelephone1rule=(?

hidetelephone1text=telephone number removed

hidetelephone1where=both

hidetelephone2rule=(?

hidetelephone2text=telephone number removed

hidetelephone2where=both

  1. debug

debug=0

debug2=0

  1. New settings.

trustedusers=User:XLinkBot/TrustedUsers

  1. Do I welcome new users (i.e. users where the talkpage does not have a single revision)

welcomeusers=1

welcomeIPs=0

  1. What templates do I welcome with?

userswelcometemplate={{subst:welcomeg|heading=no}}

ipswelcometemplate={{subst:welcomeanon|heading=no}} --~~~~

  1. header for welcome (note, the first '=' is necessary for the setting!!!)

dowelcomeheader=1

welcomeheader=== Welcome! ==

  1. detection of old warnings

spam0_warning=uw-spam0

spam1_warning=uw-spam1

spam2_warning=uw-spam2

spam3_warning=uw-spam3

spam4_warning=uw-spam4

spam4im_warning=uw-spam4im

spam5_warning=uw-spam5

block1_warning=template:block1

  1. user whitelist

userwhitelist=User:XLinkBot/UserWhitelist|User:COIBot/UserWhiteList.css

  1. level overrule list
  2. rules established there will override the level-detection by XLinkBot for certain regexes
  3. Useful to quickly get quickly revolving spam IPs to AIV - one can apply a '1 strike and you are out' - technique.

leveloverrulepage=User:XLinkBot/LevelOverrule|User:MER-C/LevelOverrule.css|User:COIBot/LevelOverrule.css