Hi there...
How can i block a nick with spamfilter?
For example:
The bots that connects to my server are botnets as far as i know. And most of tham have nick like coming from every Country
Example: USA|457842, BRA|635986, FRA|421598 etc..
So, the thing is all of tham have 6 numbers at the end
I treid to gline tham this way:
spamfilter {
regex "^[a-z]\|\[0-9]{3,6}";
target { user; };
action gline;
ban-time 1d;
reason "Posible botnet!";
};
but the thing is it glines also other users like neo| or neo|23
What am i doing wrong?
I would like to gline only the nick that have 6 numbers at the end like USA|123456 or ABC|123456
Block a nick
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Try this as your regex:This will block all the nicks starting with USA, BRA, and FRA. You can add more prefixes by separating them with a |.
If there are too many prefixes, you can use this regex:This will block anyone with 3 letters, a |, and 6 numbers at the end.
Code: Select all
^(USA|BRA|FRA)\|\d{6}!
If there are too many prefixes, you can use this regex:
Code: Select all
^[A-Z]{3}\|\d{6}!