Automatic or Manually Assisted: Automatic
Programming Language(s): Perl
Function Overview: Clean up Category:Tor_exit_nodes and related subcats.
Edit period(s): One Time Run
Already has a bot flag (Y/N): Y
Function Details: I want to do to clean out the Tor categories, get the categories of bans up to date, etc. Just basically clean up the mess that is the automagic tagging of Tor nodes. Below in the discussion of what it does, what it will do, and how it works.
Raw debug output from a run (doing checks only, no modification):
overlordq@nightshade:~/$ ./checkIPs.pl
Bad: 1222
Good: 960
Total: 2182
Getting Blocked former nodes
------------------------------
NotExitNoBan: 116.20.201.72
NotExitNoBan: 116.21.97.171
NotExitNoBan: 116.22.33.66
...
NotExitNoBan: 134.34.147.22
NotExitNoBan: 134.48.216.45
NotExitNoBan: 134.48.217.19
NotExitNoBan: 134.48.217.8
NotExitNoBan: 134.60.221.22
NotExitStillBanned: 134.76.63.97
NotExitNoBan: 134.82.104.150
FormerActiveAgain: 134.91.236.5
NotExitNoBan: 137.112.145.75
NotExitNoBan: 137.99.150.25
For this category (Category:Blocked former Tor exit nodes):
Getting unblocked Active
------------------------------
NotExitNoBan 114.199.100.12
NotExitNoBan 114.31.9.216
...
NotExitNoBan 125.116.31.243
IsExitIsBlocked 125.116.5.12
NotExitNoBan 125.118.198.51
NotExitNoBan 195.189.25.125
NotExitIsBlocked 195.24.77.134
IsExitIsBlocked 195.240.144.129
For this category (Category:Unblocked Tor exit nodes):
Getting blocked Active
------------------------------
NotExitNoBan 117.32.152.168
NotExitNoBan 124.217.247.103
NowFormerIsBlocked 125.33.138.52
NowFormerIsBlocked 137.226.113.2
NotExitNoBan 140.116.117.152
...
NowFormerIsBlocked 149.20.54.204
NotExitNoBan 158.130.5.102
IsExitIsBlocked 159.149.155.89
NowFormerIsBlocked 166.111.26.3
IsExitIsBlocked 166.70.207.2
For this category (Category:Blocked Tor exit nodes):
These last two checks use the raw output from the Tor directory to check anything that isn't already listed
NotBannedIsActive 95.24.198.146
NotBannedIsActive 79.184.107.5
NotBannedIsActive 84.46.8.28
NotBannedIsActive 85.24.149.20
IsBannedNoList 78.142.140.194
For this check:
NotBannedNotExit: 94.218.203.116
NotBannedNotExit: 213.239.197.38
NotExitStillBanned: 85.214.144.203
NotBannedNotExit: 62.149.203.82
For this check:
For all of these, the 'categorize into' and cat changing is done with the tor templates. For the banned but shouldn't, not banned but should will be output to a page for followup, as the former may be blocks that are not related to being a TOR exit.
If I'm forgetting any edge cases or have the logic messed up above, feel free to comment. Q T C 07:05, 24 March 2009 (UTC)[reply]
Alright, after the comments below, I feel that these categories are redundant and obsoleted by the TorBlock extension. As such, I feel the request should fulfill these tasks.
For all currently blocked IPs:
((etc...))
.For all currently unblocked IPs:
The ratio of blocked/unblockedactive/unblockedinactive is about 2:3:95 Q T C 13:31, 26 March 2009 (UTC)[reply]
It's a replacement for KrimpBot for those confused. Q T C 10:03, 26 March 2009 (UTC)[reply]
Withdrawn by operator. Meh, I'll take this to WT:OP where we can figure out the best way outta this and refile later. Q T C 13:45, 26 March 2009 (UTC)[reply]