Jump to content

Wikipedia:Bots/Requests for approval/FA Template Protection Bot

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by KnightLago (talk | contribs) at 15:25, 17 August 2008 (support). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Operator: Chris

Automatic or Manually Assisted: Auto

Programming Language(s): PHP using Cobi's classes

Function Summary: Adds all the templates on today's and tommorow's fa to Wikipedia:Main Page/Protection which is cascade protected

Edit period(s) (e.g. Continuous, daily, one time run): on the hour

Already has a bot flag (Y/N): N

Function Details: The bot works like so:

  1. Parses the name of today's fa from here (with some error checking)
  2. Get's all the templates on the fa and removes those listed here
  3. Formats the templates into a nice list
  4. Places the formated text on Wikipedia:Main Page/Protection

The bot will only run if User:Chris G/FABot Run is set to "Run" (cases insenstive)

Discussion

Since this is a request for an admin bot I have transcluded this brfa onto WP:AN so we can have wider community input. Per disscusion at WP:BN and the Adminbot rfc I am testing to see if this brfa alone can gather enough consensus for a 'crat to be willing to +sysop the bot. Also I would like to make it clear that I am and have been for some time running this bot on my main account. The bot's source code can been seen here --Chris 04:42, 16 August 2008 (UTC)[reply]

From an management side of things it's editing a protected page, big stinking deal, it's almost an instaapprove. It's the community acceptance of a +sysop flagged bot which will raise hell.

Can't exactly trial it without the flag... its a community acceptance thing, on a personal note, I have no problems with it -- Tawker (talk) 05:01, 16 August 2008 (UTC)[reply]

We could do something like have it mark it's edits with a unique flag (or link to this BRFA) in the edit summary, and, have Chris run it under his account, I can easily filter those edits via an SQL query, and, list them on a subpage of here for review. SQLQuery me! 05:13, 16 August 2008 (UTC)[reply]

On a sidenote, why not put the images used in it on the protection page as well? SQLQuery me! 05:15, 16 August 2008 (UTC)[reply]

Because then we'd have to rename the bot :P. If there aren't any objections to protecting images as well it should be a fairly trivial change to the code to get it done --Chris 05:34, 16 August 2008 (UTC)[reply]

Would the bot remove the templates from the protected page the following day? WODUP 06:11, 16 August 2008 (UTC)[reply]

Yes, it removes the old templates and adds the new ones --Chris 06:13, 16 August 2008 (UTC)[reply]
I figured as much, so far, to me, this sounds good. SQLQuery me! 06:23, 16 August 2008 (UTC)[reply]
Okay, sounds good. :) WODUP 06:25, 16 August 2008 (UTC)[reply]

I've updated the source so that it adds images as well --Chris 06:42, 16 August 2008 (UTC)[reply]

Question: Will this have to go through RfA like User:RedirectCleanupBot did? I can't seem to find any consensus on WP:BN. NuclearWarfare contact meMy work 19:40, 16 August 2008 (UTC)[reply]

Copying Iridescent's post from WT:RFA to this BRFA. WODUP 22:43, 16 August 2008 (UTC)[reply]

Support, but a beansy thought that someone will need to watch for; presumably if it's run every 10 minutes, a vandal can vandalize a template, add it to the article after vandalizing, and the bot would then lock the template into the vandalized state. Not a major problem but it will happen. Also, will it unprotect all the templates once the article's delisted, or only those that were unprotected to start with?

Well I thought of that too -= but presumably they can do that already, and while the vandalism will show either way, it is easier to track which edit caused it (as against adding a useful template and then vandalising - which is a bit more difficult) ViridaeTalk 22:58, 16 August 2008 (UTC)[reply]
To really deal with Xenocidic's concern it would have to constantly monitor recentchanges via IRC, even checking 5 minutes is more than enough time for someone to add a template and vandalize it. I don't think that feature will really be helpful, though that is a concern that should be dealt with, not sure how though. Mr.Z-man 23:17, 16 August 2008 (UTC)[reply]
The sort of timed attack Iridescent describes is a major concern, and it's not just in the realm of WP:BEANS, but one that's already been attempted at least twice to defeat my own FA protection adminbot. The number of possible attack vectors are increased here since we're dealing an almost unlimited number of templates that could be vandalized, or even new ones created for the purposes of mischief. Chris, you might be able to pick up the solution here. :) east718 // talk // email // 23:43, 16 August 2008 (UTC)[reply]
That method isnt going to go away - it can happen already and it isnt going to be made worse by this bot. As it stands, vandalism to the FAOTD by this method (adding a template that is already vandalised) is easiyer to deal with than adding an innocuous template then vandalising it. Having the runs more often pretty much gets rid of the latter problem and nothing will top the former except protection/eyes on the page. ViridaeTalk 06:41, 17 August 2008 (UTC)[reply]

I don't think the timing problem can be solved. No matter what time it is set to run, unless it is set to run continuously, there will be a break where mischief can occur. Since we started this in July, vandalism during the break has only happened once. In that case someone added a template that should have been in the article already and then vandalized it. In response we lowered the duration been protections. Since then I don't recall anymore problems. As for images, we had a discussion about them when we first created the page and decided not to add them unless they became a target. So far they have not. We were primarily concerned with non-free images and fair use, but we also asked what protection of an image would really do, and decided not much. Having worked on the protection page and tweaking with Chris, the bot has my support. KnightLago (talk) 15:25, 17 August 2008 (UTC)[reply]