Anti-spam
ChatZilla anti-spam counts every filter hit as a violation and bans members who collect too many: set the limit, window and ban length.
Filters delete single messages; anti-spam deals with the people behind them. Every time a filter deletes someone's message, it counts as a violation. A member who collects too many violations within a set time is banned automatically. It is set up in the User Autoblock section of the mini app.
Settings
- Enable autoblock: switches anti-spam on. It is off by default.
- Max violations: how many violations lead to a ban, 10 by default.
- Check window: the period in which violations are counted, from 15 minutes to 24 hours, 1 hour by default. Older violations no longer count.
- Ban duration: from 1 hour to 30 days, or forever. Forever by default, so choose a shorter ban if you want one.
- Send warning message: warns the member before the ban. Once they have used up more than half of the allowed violations, the filter notices say how many are left and how long the ban will be.
Violations from every filter add up: a deleted link, a forbidden sticker and a stop word count as three.
When the limit is reached
The bot bans the member for the chosen time, deletes their recent messages in the group, and posts a notice with the ban duration and the number of violations. The ban is written to the event log.
You can rewrite the warning in Bot messages; the ban notice has a fixed text.
Banning needs the Restrict members admin right (see Permissions). Without it the violations are still counted but nobody is banned.