AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Anti-Spam Lite (https://forums.alliedmods.net/showthread.php?t=137697)

NullWarez 09-08-2010 13:03

Anti-Spam Lite
 
4 Attachment(s)
Information:

If you need a simple and easy plug-in, ban/kick/warning for spam, then this plugin is for you!

Plug-blocks:
  1. Spam in nick
  2. Spam in chat
Examples of block (nick, chat):
  • example.com
  • spam.example.com
  • All IP address ranges (0.0.0.0 - 255.255.255.255)
  • Block IP + port 127.0.0.1:27105
  • Block domain + port (example.com:27015)
  • Block spam in text (My server 127.0.0.1:27015 and goto my website example.com, enjoy!)
Requirements:
  • Amxmodx
  • Amxmisc
  • Regex
Installation (amxx):
  1. Upload antispam_lite_*.amxx to amxx plugins server folder
  2. Edit plugins.ini and paste antispam_lite_*.amxx
Installation (sma):
  1. Open folder /addons/amxmodx/scripting/
  2. Upload file antispam_lite_*.sma
  3. Compile the antispam_lite_*.sma using compile.exe
  4. Open folder /addons/amxmodx/compiled
  5. Upload antispam_lite_*.amxx to amx plugins server folder
  6. Edit plugins.ini and paste antispam_lite_*.amxx
Change log:

Code:

** 1.0.3
- Initial release

** 1.0.4
- Deleted ColorChat.inc
- Separation of types of plugins
- Added preprocessor macros

** 1.0.5
- Added CVAR support

Types of plugins:

Warning - warning show only and auto-change player nick to Player-1, Player-2, Player-3, etc...

Ban - Spam in nick, Spam in chat

Kick - Spam in nick, Spam in chat

Recommendation:

If you are using antiflood protection plugin, it is recommended to put the antispam_lite_*.amxx after antiflood plugin

Versions:
  • Warning - 1.0.4
  • Ban - 1.0.4
  • Kick - 1.0.4
  • Cvar - 1.0.5
CVAR:

What should I do if spam is found in the chat:
antispam_l_action_chat (1 - warning | 2 - kick | 3 ban)

What should I do if spam is found in the nick:
antispam_l_action_nick
(1 - change nick | 2 - kick | 3 ban)

How much time ban a player?
antispam_l_bantime 200 (Ban time minutes)

Note:
  • If you have any suggestions or questions ask here
  • If you like the plugin please: Rate Thread

georgik57 09-08-2010 14:39

Re: Anti-Spam Lite
 
lol i couldn't find anything like this anywhere
thank you very much
does it ban those retards with "server be zol", "server be hinam", etc. that you can bump into everywhere?
also can you add a cvar for the lenght of the ban or to choose between kick and ban?

NullWarez 09-08-2010 15:39

Re: Anti-Spam Lite
 
I adhere to the principle - to compile everything from source with no additional details. Why? Because it creates an extra load on the processor.

I will make an additional sma to ban, warning, etc ...
I do not think CVAR so necessary, you set it to 1 time and not change CVAR every day.

About

Quote:

"server be zol", "server be hinam", etc.
In these words there is no structure, as for example IP address or the name of the site

The only way to block this to create a database and manually add such phrases.
But this routine ...
A large amount of spam is the IP addresses and websites.

I do not recommend you to ban players for spam. Because the spam-server can make a bind b "buy; say ^"Goto amazing server: 127.0.0.1^"". :wink:

I recommend show the player a message: "Advertising on your behalf ,please read help how to get rid of it, in order to prevent misunderstandings"
The player says in a chat: /help and shown the MOTD in which it is written, how to get rid of advertising in his client

Donche 09-08-2010 19:44

Re: Anti-Spam Lite
 
Hmm
Nice Plugins man :)

but if any player put in chat any IP i like to Replace with any Text "Spam not allowed" not for kicked.
but if any Player change nick in IP or in Spam i like to kicked Automatick it or if anyone to try connected in my srw with IP kicked automatick:)

Is this Plugins what i think ?

NullWarez 09-09-2010 07:08

Re: Anti-Spam Lite
 
Donche

Quote:

but if any player put in chat any IP i like to Replace with any Text "Spam not allowed" not for kicked.
edit this:


#define MSG_BLOCK_INFO "Spam not allowed"


Okay, I'll create an advanced version with CVAR who lacks functional.

But I will not engage in monkey business, and create a copy AntiCommerce :nono:

Donche 09-09-2010 08:02

Re: Anti-Spam Lite
 
Quote:

Originally Posted by NullWarez (Post 1295541)
Donche

edit this:


#define MSG_BLOCK_INFO "Spam not allowed"


Okay, I'll create an advanced version with CVAR who lacks functional.

But I will not engage in monkey business, and create a copy AntiCommerce :nono:

But its not a problem
AntiCommerce not worked for me you can create some as AntiComerce :)

NullWarez 09-09-2010 08:31

Re: Anti-Spam Lite
 
Donche

I had similar problems ... used when checking www
AntiCommerce using sockets... this very badly..

And he uses a GET request instead of HEAD
wikipedia: HTTP HEAD

Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content.

Example:

"HEAD / HTTP/1.1\r\n"
"Host: example.com\r\n
"Connection: Close\r\n\r\n"

I have heard many accusations toward the use of regular expressions.

They say that they are slower. Well, compared to using checks domain sockets and brute force dictionary or access database, they are working with the speed of light :mrgreen:

#8 SickneSS 09-09-2010 11:10

Re: Anti-Spam Lite
 
Why did you not just make a cvar to change the type (kick/warning/ban) ?

NullWarez 09-09-2010 11:16

Re: Anti-Spam Lite
 
Because when you have 30 plugins installed on the server, there are lags and the CPU load increases worthless features.

I'm on my own server has reduced the load on the processor, with 32 players from 100% to 28%

Very big difference

Every plugin I rewrote and deleted the unnecessary code, and replaced PreThink function on set_task, due to the fact that PreThink function very CPU intensive

NullWarez 09-28-2010 11:37

Re: Anti-Spam Lite
 
Guys I'm doing a new version of Anti-Spam Lite, post the spam that does not block your anti-spam

like: roze liknot server be zol? tkasher 000-000-0000 or any other types of spam


All times are GMT -4. The time now is 16:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.