Menu

#39 SpamServ V 1.08

open
nobody
None
5
2024-04-21
2004-02-27
feigling
No

This is version 1.01.
I found a small bug in version 1.0, which could crash
srvx, when a user joined a channel, said something,
joined a second channel and parted the channel without
saying anything in the channel.
This bug is fixed.

SpamServ can detect spam, flood, joinflood and
unallowed advertisements.
Advertisements are: www. http: ftp. ftp: and #.
SpamServ allows you to set various channel settings, for
example, you can enable/disable any check (spam,
flood, ..), you can modify the punishment and you can
decide, whether SpamServ has to scan messages from
channel ops or voiced users.

When you suspend/unsuspend ChanServ, SpamServ
parts/joins the channel as well.
When you unregister/move/merge a Channel, SpamServ
parts the channel.
When a channel loses all users or expires, SpamServ
parts the channel.
In all cases, the channel has to be registered with
SpamServ ;)

When a user gets killed and reconnects to the network
within an hour, SpamServ notices that and will gline the
user, when he violates the rules again.

It is possible to add special exceptions to every channel.
If you want to allow users to post a special
channelname or an url, e.g. you want to
allow "#support" you can do "/msg

Spamserv addexception #your_channel #support". That
means, SpamServ will not punish a user when he posts
the channelname #support.

Other example: "/msg spamserv addexception
#your_channel gamesurge.net" means, a user can
post "www.gamesurge.net/aup/".

---

Installation:

1. Download srvx-1.2.1 at
http://prdownloads.sourceforge.net/srvx/srvx-
1.2.1.tar.gz?download

2. Unpack srvx and put the patch into the directory,
which contains the srvx-1.2.1 directory. Do NOT copy
the patch into the srvx directory !

3. To patch srvx, simply type "patch -p0 <
spamserv.patch" or "patch -p1 < spamserv.patch" in the
directory, which contains the srvx directory and the
patch file.

4. Type "./configure" , "make" and "make install".

5. Change the srvx.conf.example and execute srvx.

6. Do "/msg opserv bind spamserv * *spamserv.*" to
bind all commands.

Btw, this patch will NOT delete an existing srvx.db, so
don't worry, you won't lose your data, but it's better to
create a backup.

---

Memory Information:

I made some "statistics" about the memory usage and I
can promise, SpamServ doesn't need much memory.

To see the memory usage, you can do "/msg spamserv
status".

Some examples:

One user, who is not in any channel + one channel
registered

-SpamServ- Status:
-SpamServ- Total Users Online: 1
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 20 Byte; 0.0195312
KiloByte; 1.90735e-05 MegaByte
-SpamServ- User Memory Usage : 28 Byte; 0.0273438
KiloByte; 2.67029e-05 MegaByte
-SpamServ- Total Memory Usage : 48 Byte; 0.046875
KiloByte; 4.57764e-05 MegaByte

---------------------

One user, who is in one channel + spammed in the
channel + one channel registered

-SpamServ- Status:
-SpamServ- Total Users Online: 1
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 20 Byte; 0.0195312
KiloByte; 1.90735e-05 MegaByte
-SpamServ- User Memory Usage : 96 Byte; 0.09375
KiloByte; 9.15527e-05 MegaByte
-SpamServ- Total Memory Usage : 116 Byte; 0.113281
KiloByte; 0.000110626 MegaByte

---------------------

One user, who is not in any channel + one channel
registered + exception "1234567890" (10 bytes for this
exception -> length(string) = number of bytes)

-SpamServ- Status:
-SpamServ- Total Users Online: 1
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 30 Byte; 0.0292969
KiloByte; 2.86102e-05 MegaByte
-SpamServ- User Memory Usage : 28 Byte; 0.0273438
KiloByte; 2.67029e-05 MegaByte
-SpamServ- Total Memory Usage : 58 Byte; 0.0566406
KiloByte; 5.53131e-05 MegaByte

---------------------

500 users, who are not in any channel + one channel
registered

-SpamServ- Status:
-SpamServ- Total Users Online: 501
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 30 Byte; 0.0292969
KiloByte; 2.86102e-05 MegaByte
-SpamServ- User Memory Usage : 14028 Byte; 13.6992
KiloByte; 0.0133781 MegaByte
-SpamServ- Total Memory Usage : 14058 Byte; 13.7285
KiloByte; 0.0134068 MegaByte

---------------------

500 users, who are in one channel + spammed in the
channel + one channel registered

-SpamServ- Status:
-SpamServ- Total Users Online: 501
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 30 Byte; 0.0292969
KiloByte; 2.86102e-05 MegaByte
-SpamServ- User Memory Usage : 36072 Byte; 35.2266
KiloByte; 0.0344009 MegaByte
-SpamServ- Total Memory Usage : 36102 Byte; 35.2559
KiloByte; 0.0344296 MegaByte

---------------------

10000 users, who aren't in any channel + one channel
registered

-SpamServ- Status:
-SpamServ- Total Users Online: 10001
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 30 Byte; 0.0292969
KiloByte; 2.86102e-05 MegaByte
-SpamServ- User Memory Usage : 280028 Byte; 273.465
KiloByte; 0.267056 MegaByte
-SpamServ- Total Memory Usage : 280058 Byte;
273.494 KiloByte; 0.267084 MegaByte

-> 28 Byte/User

---------------------

10000 users, who are in one channel and didn't say
anything + one channel registered

-SpamServ- Status:
-SpamServ- Total Users Online: 10001
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 30 Byte; 0.0292969
KiloByte; 2.86102e-05 MegaByte
-SpamServ- User Memory Usage : 520072 Byte; 507.883
KiloByte; 0.495979 MegaByte
-SpamServ- Total Memory Usage : 520102 Byte;
507.912 KiloByte; 0.496008 MegaByte

---------------------

10000 users, who are spamming in a chan + one channel
registered

-SpamServ- Status:
-SpamServ- Total Users Online: 10001
-SpamServ- Registered Channels: 1
-SpamServ- Memory Information:
-SpamServ- Channel Memory Usage: 30 Byte; 0.0292969
KiloByte; 2.86102e-05 MegaByte
-SpamServ- User Memory Usage : 720072 Byte; 703.195
KiloByte; 0.686714 MegaByte
-SpamServ- Total Memory Usage : 720102 Byte;
703.225 KiloByte; 0.686743 MegaByte

---

Of course SpamServ doesn't allocate memory, when a
user joins a channel, which is not registered with
SpamServ.

SpamServ will delete useless or old memory by itself,
e.g. when a user joins a channel, SpamServ creates a
joinfloodNode to

check, if the user creates join/part spam. After ~7
minutes SpamServ will delete the memory of that
joinfloodNode.

If a user joins 20 Channels, which are registered with
SpamServ and idles in the channels for a few hours,
SpamServ only

needs 28 bytes to save all information about that user.
It removes all memory allocated to check for flood and
joinflood.

That means, SpamServ can handle hundreds/thousands
of users without using too much memory.

If you want a proof that SpamServ can handle so many
users, see this log: http://feigling.de.ms/SpamServ-
Chan-Log.log

---

If you have any questions/suggestions/bug reports,
email feigling@gamesurge.net or pm me in #srvx on
GameSurge.

Discussion

<< < 1 2 (Page 2 of 2)
  • h3ll

    h3ll - 2008-06-03

    Logged In: YES
    user_id=1354764
    Originator: NO

    i changed the patch so it workds with 1.4-rc1
    it's not fully tested but shall work. if u find a bug contact me @ #srvx/GameSurge or #help/OnlineGamesNet

    You can download it @ http://www.onlinegamesnet.net/patches/spamserv-1.4.patch

     
  • John

    John - 2009-09-25

    Suppose add a 1.4-rc3 one?

     
  • pk910

    pk910 - 2010-03-07

    I've changes h3ll's patch a little bit so it should work with srvx-1.4.0-rc3
    http://pk910.de/patch/spamserv-1.4.0-rc3.patch

     
  • Wizard Suntop

    Wizard Suntop - 2024-04-21

    Hi, I did everything exactly as said in the install section, then added the patch, but adding spamserv through opserv doesn't work, I even tried compiling as root to be able to compile ..and following all the comments here, but spamserv still doesn't work, any ideas please? What am I doing wrong?

    [19:09:52] -> opserv bind spamserv * spamserv.
    [19:09:53] -OpServ- Unknown service spamserv.

    using debian 12 and nefarious2..

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

MongoDB Logo MongoDB