| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = nukeuser plugin = |
| 4 | |
| 5 | == Description == |
| 6 | |
| 7 | A tiny plugin that adds a trac-admin command for cleaning out spammer accounts, and all their tickets and comments. |
| 8 | |
| 9 | It requires SpamFilterPlugin. |
| 10 | |
| 11 | It does not do anything about wiki content or attachments. Forks and |
| 12 | patches welcome. |
| 13 | |
| 14 | It does not provide a web UI. Forks and patches welcome :) |
| 15 | |
| 16 | |
| 17 | |
| 18 | == Bugs/Feature Requests == |
| 19 | |
| 20 | Existing bugs and feature requests for NukeUserPlugin are |
| 21 | [report:9?COMPONENT=NukeUserPlugin here]. |
| 22 | |
| 23 | If you have any issues, create a |
| 24 | [http://trac-hacks.org/newticket?component=NukeUserPlugin&owner=slinkp new ticket]. |
| 25 | |
| 26 | == Download == |
| 27 | |
| 28 | Download the zipped source from [download:nukeuserplugin here]. |
| 29 | |
| 30 | == Source == |
| 31 | |
| 32 | You can check out NukeUserPlugin from [http://trac-hacks.org/svn/nukeuserplugin here] using Subversion, or [source:nukeuserplugin browse the source] with Trac. |
| 33 | |
| 34 | == Example == |
| 35 | |
| 36 | To configure it, first you need SpamFilterPlugin installed. Then put this in your trac.ini: |
| 37 | {{{ |
| 38 | [components] |
| 39 | nukeuserplugin.* = enabled |
| 40 | }}} |
| 41 | |
| 42 | To use it: |
| 43 | |
| 44 | {{{ |
| 45 | $ trac-admin /path/to/trac/environment/ nukeuser username |
| 46 | }}} |
| 47 | |
| 48 | |
| 49 | (If you use it interactively, it does tab-completion of usernames from |
| 50 | the auth cookie table in the database.) |
| 51 | |
| 52 | This will do all of the following: |
| 53 | |
| 54 | * Remove the user account. |
| 55 | * Delete all tickets and comments created by that user. |
| 56 | * Train and delete SpamFilterPlugin entries by that user. |
| 57 | |
| 58 | Motivation: I've been getting some (authenticated) Trac spam lately, |
| 59 | some of it getting past SpamFilterPlugin's filters (I'm using all of |
| 60 | Akismet, BlogSpam, and reCaptcha, and they still got through). I was |
| 61 | getting tired of doing cleanup manually. |
| 62 | |
| 63 | |
| 64 | == Recent Changes == |
| 65 | |
| 66 | [[ChangeLog(nukeuserplugin, 3)]] |
| 67 | |
| 68 | == Author/Contributors == |
| 69 | |
| 70 | '''Author:''' [wiki:slinkp] [[BR]] |
| 71 | '''Maintainer:''' [wiki:slinkp] [[BR]] |
| 72 | '''Contributors:''' |