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

georgik57 09-28-2010 14:41

Re: Anti-Spam Lite
 
Quote:

Originally Posted by NullWarez (Post 1310595)
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

looking forward to that
atm i'm using your current plugin on my server
will give you the error log if any problems

nuked 09-28-2010 16:58

Re: Anti-Spam Lite
 
Quote:

Originally Posted by georgik57 (Post 1294942)
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?

http://66.228.116.138/showthread.php?t=86199 perhaps?

NullWarez 09-29-2010 07:32

Re: Anti-Spam Lite
 
Ok spam blocker more powerful. Close thread....

YamiKaitou 09-29-2010 09:23

Re: Anti-Spam Lite
 
Quote:

Originally Posted by nuked (Post 1310860)

URL fixed.

Unapproved at authors request

Daki 10-07-2010 16:52

Re: Anti-Spam Lite
 
man can i edit not check in chat ip only in nick !
can i disable checked ip in chat ?

ekinoX 10-29-2010 21:01

Re: Anti-Spam Lite
 
some player spamed like this :

255. 255.255.255 or 255. 255. 255. 255
and your plugin dont kick him ?

georgik57 10-30-2010 05:45

Re: Anti-Spam Lite
 
Quote:

Originally Posted by NullWarez (Post 1311208)
Ok spam blocker more powerful. Close thread....

please continue the project
yours is much better since it covers all the ip and dns adresses
also there's a bug
it changes the player name 2 times
in rest it works perfect

ekinoX 10-30-2010 12:12

Re: Anti-Spam Lite
 
Quote:

Originally Posted by ekinoX (Post 1336981)
some player spamed like this :

255. 255.255.255 or 255. 255. 255. 255
and your plugin dont kick him ?

plzz edit a script
make it for checked ip
255. 255. 255. 255
255.255.255.255
255. 255.255.255
255. 255. 255. 255
255. 255.255. 2555

:oops:

polo7 04-06-2011 11:08

Re: Anti-Spam Lite
 
Good plugin!

georgik57 06-11-2011 14:16

Re: Anti-Spam Lite
 
warez can you please continue to support this?
i prefer this instead of spam blocker

Osviux 06-15-2011 10:54

Re: Anti-Spam Lite
 
Quote:

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
You could add a Block function that just doesnt allow the message to be displayed to other users. Because there is no Block function i dont really want this ;/

skunew 02-08-2014 12:21

Re: Anti-Spam Lite
 
I cant have my serwer website in name :/

skunew 02-09-2014 06:53

Re: Anti-Spam Lite
 
How add website and this site dont be comerce?

Godofwar 08-02-2016 15:34

Re: Anti-Spam Lite
 
How to or what i have to change that that plugin ban ONLY IP Adress and not SteamIDīs??

HamletEagle 08-03-2016 04:52

Re: Anti-Spam Lite
 
Quote:

Originally Posted by Godofwar (Post 2441761)
How to or what i have to change that that plugin ban ONLY IP Adress and not SteamIDīs??

Why would you want to do that? Banning by ip is not reliable.

Godofwar 08-03-2016 08:43

Re: Anti-Spam Lite
 
Quote:

Originally Posted by HamletEagle (Post 2441873)
Why would you want to do that? Banning by ip is not reliable.

yes but the problem that many users got banned by adversting, that plugin is great, it banned them but i am a little bit scared that all the steam idīs maybe banned too in my other servers... so i thought it is better to use IP BAN ... ?!

HamletEagle 08-03-2016 11:05

Re: Anti-Spam Lite
 
If you ban them in one server, then they are only banned in that specific server.

Godofwar 08-03-2016 11:38

Re: Anti-Spam Lite
 
OH ok i thought they are banned then in all servers :D thx for your help.

georgik57 08-04-2016 07:14

Re: Anti-Spam Lite
 
Quote:

Originally Posted by Godofwar (Post 2441979)
OH ok i thought they are banned then in all servers :D thx for your help.

So u still need ban on IP or not?

Godofwar 08-04-2016 14:17

Re: Anti-Spam Lite
 
yes when it is possible then yes

georgik57 08-04-2016 16:59

Re: Anti-Spam Lite
 
Quote:

Originally Posted by Godofwar (Post 2442281)
yes when it is possible then yes

are you using amx bans plugin? because this plugin seems to send amx bans' commands to the server.
also, which one of the plugins are you using? the one with cvars or without?

Godofwar 08-05-2016 08:48

Re: Anti-Spam Lite
 
i am using all from that and yes amxbans system - dont needed to change anything from that, the amxbans serveradmin banned players.

georgik57 08-05-2016 12:56

Re: Anti-Spam Lite
 
2 Attachment(s)
Quote:

Originally Posted by Godofwar (Post 2442466)
i am using all from that and yes amxbans system - dont needed to change anything from that, the amxbans serveradmin banned players.


Godofwar 08-05-2016 13:37

Re: Anti-Spam Lite
 
THX to you - really !

Godofwar 08-05-2016 14:27

Re: Anti-Spam Lite
 
Dont work..

Nickname
Iustina SteamID STEAM_0:0:1869029385 Steam Community ID 76561201698324498 IP address 87.252.229.32 Ban type SteamID Reason Adversting

maybe i need to edit amxbans.cfg ??? or what and how i have to edit for that? :S

georgik57 08-05-2016 19:31

Re: Anti-Spam Lite
 
Quote:

Originally Posted by Godofwar (Post 2442557)
Dont work..

Nickname
Iustina SteamID STEAM_0:0:1869029385 Steam Community ID 76561201698324498 IP address 87.252.229.32 Ban type SteamID Reason Adversting

maybe i need to edit amxbans.cfg ??? or what and how i have to edit for that? :S

I have no idea how AmxBans works but I've made it ban on IP(amx_banip).
Make sure those logs aren't old(before you replaced the plugin) or that you have actually replaced the plugin(Anti-Spam) correctly.

Godofwar 03-24-2017 11:05

Re: Anti-Spam Lite
 
since i have that plugin and now server send sometimes INGAME_WArning_MSG - how to fix?

giogio91 09-20-2023 07:30

Re: Anti-Spam Lite
 
1 Attachment(s)
dosen't work at all...
maybe worked long time ago , when hacker's weren't soooo advanced...
maybe somebody can make one that works ^_^ would be very nice of him'
IMAGE...

mlibre 09-21-2023 11:24

Re: Anti-Spam Lite
 
Quote:

Originally Posted by giogio91 (Post 2810289)
dosen't work at all...
maybe worked long time ago , when hacker's weren't soooo advanced...
maybe somebody can make one that works ^_^ would be very nice of him'
IMAGE...

basic filter

PHP Code:

public plugin_init() {
    
//...
    
    
register_clcmd("say""get_say")
}

new const 
g_filter[][] =
{
    
"fuck",
    
"gay"
}

public 
get_say(id)
{
    new 
msg[192]
    
    
read_args(msgcharsmax(msg))
    
    
remove_quotes(msg)
    
    for(new 
isizeof g_filteri++)
    {
        if(
containi(msgg_filter[i]) != -1)
        {
            
client_print(idprint_notify"blocked word")
            
            return 
PLUGIN_HANDLED
        
}
    }
    
    return 
PLUGIN_CONTINUE




All times are GMT -4. The time now is 08:06.

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