antispam system instead of flood,spam protect.&cursefilt

Discussion for Admins of ETPro/BayonET servers.
If you don't run a server, please don't post here...

Moderators: Forum moderators, developers

Post Reply
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

antispam system instead of flood,spam protect.&cursefilt

Post by Luk4ward »

Hi, i was thinking about including in the new etpro the system from ettv instead of this new flood system and spam protection. The cvars on the server side can look like:

b_antispamLines x [max lines]
b_antispamTime y [the time between sending commands (lines) to server]

And u can also include in this system the bad words filter which will be reading the bad words from the file in the etpro dir like in the etadmin mod.

cvar: b_badwordsfile file.txt

Code: Select all

# Bad word file.
#
# 
# string or word per line
# comments start with # (as usual)
#
# if you want to match a string, at the beginning of a word, then make a space in front.
# if you want to match a string at the end of a word, then make a space at the end.
# If you want to match a complete word, make a space in front and behind.
# If you want to use regular expressions, make a regexp: in front of your string.
#
# Small regular expression help:
# ?      = means the char before is optional (0 or 1 repeats) (Example: na?p = nap or np, not naap)
# *      = means 0 or more repeats. (Example: na*p = naaaaaap or np)
# +      = one or more of the char, behind which the '+' stands (Example: na+p = nap, naaaaap, naaaaaaaap)
# []     = 'or' for chars, not strings - n[a4]p finds 'n4p' and 'nap'
# \s     = space or tab
# .      = any char (example: n.p = nap, nbp, n4p, ...)

# matches: F U C K, F UUUCKK, fuck, FUUUUCK, FUCCKKKKER, mothafucker and anything like that.
regexp:f+\s*u+\s*c+\s*k+
regexp:k+\s*u+\s*r+\s*w+
# matches: noob, boon, obernoobs, noooobs, b00bs or boobs, etc.
# this one only find stuff with space or s at the end:
#regexp:[nb][o0]{2,}[bn][s\s]
# this one is more generell:

# standard badwords
To sum up, if u spam with b_antispamLines lines or the time between sending lines to the server is shorter then b_antispamTime or the word will match with bad words list u will get muted for 1 min, then for 5 min and then for 10, 20...People wont be kicked and server will be safe from spamming and agressive ppl. Whats more 3 cvars will be replaced with 6 cvars ( b_floodMaxCommands, b_floodKickRate, b_floodKickBurst, b_floodKickTime, g_voiceChatsAllowed, b_cursefilter )

What u think?

p.s the idea of the muted icon near to the nick in the score menu like in jaymod is nice, also perm mute (u cant vote for unmute) too ;)

Regards
wolFTeam.pl
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

The floodkick system is to prevent specific exploits, not to limit chat. Chat is not the only floodable command, and not all the floodable stuff can reasonably be ignored. If you limit chat to less than the floodkick threshold, ignored chats will not be counted against the flood limit.

For game servers, you can implement just about any spam limiting / curse filtering you want it lua.
send lawyers, guns and money
Post Reply