diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-06-29 15:10:26 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-06-29 15:10:26 +0200 |
| commit | 5cb4767698cf5b15906fad1d43ac0cfb5ec76ff4 (patch) | |
| tree | 39038f6777ad9adebca0a9e0ba5a19843e8760be /README.md | |
| parent | 620038356a50f30459820833fdf3a38250c6cbf9 (diff) | |
| download | kazbek-master.tar.gz | |
Since I do not use gitea anymore and cannot maintain the compatibility
with the new versions.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -13,7 +13,6 @@ The repository contains a collection of random scripts and short programs. 3. [rename.rb](#renamerb) 4. [pg\_jekyll.rb](#pg_jekyllrb) 5. [locopy](#locopy) -6. [tea-cleaner](#tea-cleaner) ## 7digital @@ -60,39 +59,3 @@ it should be able to find. Invokation example: ```sh locopy wordpress --root /path/to/wordpress --siteurl "http://localhost:8083" ``` - -## tea-cleaner - -`tea-cleaner` tries to detect spam accounts on a gitea instance and can remove -them automatically. - -### Run instructions - -See `tea-cleaner.toml.dist` for a description of the available configuration. -Copy this file to `config/tea-cleaner.toml` and change at least `token` and -`server` values. After that if you just run `tea-cleaner` it will give a list -of user accounts which look suspicious to it. Rerunning the command with the -`--live` flag will purge the listed accounts and all their activities, assuming -the given token has amdinistrative access to the Gitea instance. - -Run `tea-cleanr --help` to see all available command line options. - -### Applied rules - -Critical: - -- The account is elder than a month and the user hasn't logged in since then. -- User information contains banned words (can be adjusted in the configuration file). -- User's homepage contains percent encoded symbols. - -Possible: - -- User filled fields for personal information: description and website. -- The mail address domain is unusual (can be adjusted in the configuration file). - -The accounts that violate one of the critical rules are marked for removal -right away. Other checks trigger an additional lookup for the last user -activities. If everything user did was creating an empty repository, these -accounts are marked for removal as well. - -The rules are based on my invastigation of spam accounts on this instance. |
