Raised This Month: $158 Target: $400
 39% 

Anti-Spam Lite


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-08-2010 , 14:03   Anti-Spam Lite
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (antispam_lite_warning.sma - 4559 views - 2.5 KB)
File Type: sma Get Plugin or Get Source (antispam_lite_kick.sma - 3867 views - 2.1 KB)
File Type: sma Get Plugin or Get Source (antispam_lite_ban.sma - 3211 views - 2.1 KB)
File Type: sma Get Plugin or Get Source (antispam_lite_cvars.sma - 3534 views - 3.8 KB)
__________________
Develop ZP 4.3 Tear Devil

Last edited by NullWarez; 09-09-2010 at 08:54.
NullWarez is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-08-2010 , 15:39   Re: Anti-Spam Lite
Reply With Quote #2

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?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-08-2010 , 16:39   Re: Anti-Spam Lite
Reply With Quote #3

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^"".

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
__________________
Develop ZP 4.3 Tear Devil

Last edited by NullWarez; 09-08-2010 at 18:30.
NullWarez is offline
Donche
BANNED
Join Date: Aug 2010
Old 09-08-2010 , 20:44   Re: Anti-Spam Lite
Reply With Quote #4

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 ?
Donche is offline
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-09-2010 , 08:08   Re: Anti-Spam Lite
Reply With Quote #5

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
__________________
Develop ZP 4.3 Tear Devil

Last edited by NullWarez; 09-09-2010 at 08:55.
NullWarez is offline
Donche
BANNED
Join Date: Aug 2010
Old 09-09-2010 , 09:02   Re: Anti-Spam Lite
Reply With Quote #6

Quote:
Originally Posted by NullWarez View Post
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
But its not a problem
AntiCommerce not worked for me you can create some as AntiComerce
Donche is offline
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-09-2010 , 09:31   Re: Anti-Spam Lite
Reply With Quote #7

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
__________________
Develop ZP 4.3 Tear Devil

Last edited by NullWarez; 09-09-2010 at 09:40.
NullWarez is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-09-2010 , 12:10   Re: Anti-Spam Lite
Reply With Quote #8

Why did you not just make a cvar to change the type (kick/warning/ban) ?
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-09-2010 , 12:16   Re: Anti-Spam Lite
Reply With Quote #9

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
__________________
Develop ZP 4.3 Tear Devil

Last edited by NullWarez; 09-09-2010 at 12:21.
NullWarez is offline
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-28-2010 , 12:37   Re: Anti-Spam Lite
Reply With Quote #10

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
__________________
Develop ZP 4.3 Tear Devil

Last edited by NullWarez; 09-28-2010 at 12:40.
NullWarez is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:38.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode