Raised This Month: $51 Target: $400
 12% 

Advanced Spam Protection v4.5.1 [3 Jan 2015]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
souvikdas95
Senior Member
Join Date: Mar 2012
Old 12-14-2012 , 13:18   Advanced Spam Protection v4.5.1 [3 Jan 2015]
Reply With Quote #1

[IMG]http://s2.************/rdmp4ugm1/Untitled_1.png[/IMG]

Latest Update : 3 January, 2015

Requirements :
  • AMXModX v1.8.3 and above
    Regex Module, required for this plugin has been updated with various new functions, syntaxes and grammar ( PCRE ), in v1.8.3.
    See: ( https://github.com/alliedmodders/amxmodx/pull/69 ) for more Information on the Update.
    v1.8.2 or below won't be able to use certain regex syntaxes & grammar especially verbs like "(*SKIP)" or "(*FAIL)", required for pre-whitelisting strings in complex patterns.
    Required Changes for Compatibility:
    Code:
    IP Address: "((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))"
    
    Website Spam: "((?:\w(?<!\Agoogle)(?<!\Wgoogle))+\.((com)|(co)|(net)|(org)|(edu)|(int)|(gov)|(mil)|(cf)|(gq)|(ga)|(ml)|(tk)|(uk)|(cn)|(nl)|(ru)|(eu)|(us)|(in)|(ly)|(tv)|(de)|(at)|(nz)|(gs)|(tc)|(ms)|(vg)|(ws)|(cc)|(bz)|(be)|(cs)|(cz)|(ir)|(vn)|(pl)|(pk)|(dk)|(ca)|(cu)|(mx)|(rs)|(biz)|(info)|(mobi)|(asia)|(name)|(pro)|(tel)|(me)|(xxx)))"
  • Modules:
    • Regex
    • Fakemeta
    • nVault

Features :
  • Punishes Player for Spamming by Blocking his Chat/Name
  • Custom Spam Blocking/Punishment
  • Dynamic Name Spam Detection (Module - Fakemeta)
  • Server-Side Warn & Kick Counter (Module - nVault)
  • Blocks On Client Connect Chat Flood Spams (Exploit/Spambots)
  • Blocks Fast Name/Chat Spam. (Exploit/Spambots)
  • Blocks Repeated Chat Messages/ Names (Exploit/Spambots)
  • Blocks Custom Strings or Patterns ( Regex )
    • Blocks IP Address Spams
    • Blocks Website Spams
    • Blocks Overflow Spams
    • Blocks Client-Side Coloured Chat Scripts
  • Server Announcement to Public about Spammer (Now in Coloured Chat)
  • MOTD Message Display (Warning Spammer)
  • Custom Bans
  • Custom Immunity Flags
  • Support for Bots

Custom Commands :
  • asp_block <nick, #userid, authid> <seconds> <chat, name, both> [reason]
  • asp_unblock <nick, #userid, authid> <chat, name, both>
CVARs :

These CVARs are Constants
i.e. They can't be edited from RCON/Player Console. These are read only during Server Start or Map Change ( Plugin Load ) from ASP_Configs.cfg Only.

PHP Code:
// ------------------------
// --------- BASE ---------
// ------------------------

// Enable or Disable Motd Warning ( 0 to Disable )
EnableMotd 1

// Maximum Warns before Kicking ( 0 to Kick without In-Game Warning or -1 to Never Kick and/or Ban i.e. Only Warn )
MaxWarn 5

// Enable or Disable Ban ( 0 to Disable )
EnableBan 1

// Ban Duration in Minutes ( 0.0 for Permanent Ban ) - Requires "EnableBan" to be "1"
BanDuration 60.0

// Maximum Kicks before Banning ( 0 to Ban without any Kicks ) - Requires "EnableBan" to be "1"
MaxKick 5

// Enable or Disable Check for Immunity ( 0 to Disable )
CheckImmunity 1

// Flags for Immunity - Requires "CheckImmunity" to be "1"
ImmunityFlags "a"

// Enable or Disable Ignore Bots ( 0 to Disable )
IgnoreBots 1


// -----------------------------
// --------- CHAT SPAM ---------
// -----------------------------

// Enable or Disable Check for Chat Spam ( 0 to Disable )
Chat_Check 1

// Duration of Punishment of Warned Player - No Permission to Chat
Chat_PunishDuration 30.0

// Enable or Disable Check for Already Warned Player with no Permission to Chat, trying to Chat ( Brute ) ( 0 to Disable )
Chat_CheckBrute 1

// Maximum no. of Brute Attempts before giving Warning - Requires "Chat_CheckBrute" to be "1"
Chat_MaxBrute 10

// Enable or Disable Check for Player trying to Continuously Flood the Chat ( 0 to Disable )
Chat_CheckFlood 1

// Minimum Interval between Consecutive Chat Messages ( In Seconds ) - Requires "Chat_CheckFlood" to be "1"
Chat_FloodTimeSec 1.0

// Maximum no. of Flood Attempts before giving Warning - Requires "Chat_CheckFlood" to be "1"
Chat_MaxFloodCount 5

// Enable or Disable Check for BlackLists, WhiteLists, Invalid Characters and IP Spam ( 0 to Disable )
Chat_CheckString 1

// Enable or Disable Check for Repeated Messages ( 0 to Disable )
Chat_CheckRepeat 1

// Minimum Chat Messages Required to Start Check for Repeated Messages - Requires "Chat_CheckRepeat" to be "1"
Chat_MinMessages 8

// Maximum Ratio of Acceptable Repeated Chat Messages and Total Chat Messages Sent by a Player before giving Warning - Requires "Chat_CheckRepeat" to be "1"
Chat_MaxRepeatRatio 0.25


// -----------------------------
// --------- NAME SPAM ---------
// -----------------------------

// Enable or Disable Check for Name Spam ( 0 to Disable )
Name_Check 1

// Duration of Punishment of Warned Player - No Permission to Change Name
Name_PunishDuration 30.0

// Enable or Disable Check for Already Warned Player with no Permission to Change Name, trying to Change Name ( Brute ) ( 0 to Disable )
Name_CheckBrute 1

// Maximum no. of Brute Attempts before giving Warning - Requires "Name_CheckBrute" to be "1"
Name_MaxBrute 5

// Enable or Disable Check for Player trying to Flood by Continously Changing Names ( 0 to Disable )
Name_CheckFlood 1

// Minimum Interval between Consecutive Name Change ( In Seconds ) - Requires "Name_CheckFlood" to be "1"
Name_FloodTimeSec 3.0

// Maximum no. of Flood Attempts before giving Warning - Requires "Name_CheckFlood" to be "1"
Name_MaxFloodCount 5

// Enable or Disable Check for BlackLists, WhiteLists and IP Spam ( 0 to Disable )
Name_CheckString 1

// Enable or Disable Check for Repeated Names ( 0 to Disable )
Name_CheckRepeat 1

// Maximum Number of Repeated Name Changes before giving Warning - Requires "Name_CheckRepeat" to be "1"
Name_MaxRepeatCount 3


// -----------------------------
// -------- CUSTOM SPAM --------
// -----------------------------

// Enable or Disable Check for Name Spam ( 0 to Disable )
EnableCustom 1

// Flags for Access to Custom Commands - Requires "EnableCustom" to be "1"
CustomFlags "d" 
Patterns :

PHP Code:
// ------------------------------------------------------------------
// -------------------------- ASP PATTERNS --------------------------
// ------------------------------------------------------------------
//
// Format: "(<pattern>)" "<Flag>" "<ModeSpam>" "<Spam Block Message>"
//
// ------------------------------------------------------------------
//
// Regex Pattern Guide:
//    
//    Official Site:    http://www.regular-expressions.info/
//    Beginners:    http://www.zytrax.com/tech/web/regex.htm
//    Advanced:    http://www.princeton.edu/~mlovett/reference/Regular-Expressions.pdf
//    Reference:    http://regexhero.net/reference/
//            http://userguide.icu-project.org/strings/regexp
//    Test:        https://www.regex101.com/
//
// ------------------------------------------------------------------
//
// Regex Flag Guide:
//
//      i    Ignore case
//      m    Multilines (affects ^ and $ so that they match
//          the start/end of a line rather than matching the
//          start/end of the string).
//      s    Single line (affects . so that it matches any
//          character, even new line characters).
//      x    Pattern extension (ignore whitespace and # comments).    
//
// ------------------------------------------------------------------
//
// ModeSpam Guide:
//
//      chat    only match in chat
//      name    only match in name
//    both    match in both chat & name
//
// Note : Prefer using "both" unless you use plugins that extend
//       definitions for either but not both of chat or/and name.
//
// ------------------------------------------------------------------
//
// WARNING: Do Not Use/Enable WORD WRAP in your Editor
//
// ------------------------------------------------------------------ 
Installation Instructions :
  1. Put "ASP.amxx" in [ addons/amxmodx/plugins/ ]
  2. Write "ASP.amxx" at the TOP of [ addons/amxmodx/configs/plugins.ini ]
  3. Create a New Folder in [ addons/amxmodx/configs/ ] and Name it "ASP"
  4. Put "ASP_Configs.cfg" and "ASP_Patterns.cfg" in [ addons/amxmodx/configs/ASP/ ]

FAQ :

Code:
Q1. How do I use only Ban Feature?
Ans. Set "MaxWarn" and "MaxKick" to "0" and "EnableBan" to "1"

Q2. How do I use only Kick Feature?
Ans. Set "EnableBan" and "MaxWarn" to "0"

Q3. How do I use only Warn Feature?
Ans. Set "MaxWarn" to "-1"
Changelog :

Code:
  • v4.5.1 :
    • Fixed: "Stack Error" on AMXModX v1.8.2 Compiler or below
  • v4.5 :
    • Removed: BlackList & Whitelist
    • Upgraded: IP Based Blocking to Automated (SteamID/IP/Name) Blocking System
    • Upgraded: Flag Analysis Algorithm
    • Added: Complete Regex Based String Checking with Custom Spam Message
    • Added: Repeated Name Check, Name Check Toggle, Chat Check Toggle
    • Added: Custom Spam Block on Client Command
    • Renamed: "ASP_Config.ini" to "ASP_Configs.cfg"
    • Fixed: Old Bugs
  • v4.3.2 - v4.3.4 :
    • Optimized: BlackList Check
    • Added: Support for Individual Words
  • v4.3.1 :
    • Optimized: BlackList/WhiteList Check
    • Added: New Config: "IgnoreCase"
  • v4.3 :
    • Added: WhiteList for IP Address(es)
    • Added: New Config: "IgnoreBots"
  • v4.2 :
    • Source Code fully Changed and Optimized
    • All new CVARs ( Now Constants )
    • Added: Repeated Chat Messages Check ( On Suggestion by Yamikaitou )
    • Added: Continuation of Punishment on Spammer Reconnect
    • Added: WhiteList ( Works in Coordination with BlackList )
    • Added: Chat Flood Control during Client Connect
    • Added: Custom BAN
    • Removed: Global Ban System ( Steam Unsupported and Depreciated )
    • Removed: Useless Checks for External Plugins
    • Reduced Overall Load on the Server by changing Working Paradigm from Dynamic to Static
    • Increased Compatibility with Developmental API
  • v1.0 - v4.1 :
    • Initial Release and Development
Servers using this Plugin : Gametracker

Downloads Reset Since Release --> 4495

Download :
Attached Files
File Type: cfg ASP_Configs.cfg (3.6 KB, 4672 views)
File Type: cfg ASP_Patterns.cfg (2.5 KB, 5110 views)
File Type: sma Get Plugin or Get Source (ASP.sma - 7752 views - 35.2 KB)

Last edited by souvikdas95; 08-23-2015 at 05:57. Reason: Update v4.5.1 - fix "Stack Error" on AMXModX v1.8.2 Compiler or below
souvikdas95 is offline
The Zero
Member
Join Date: Nov 2012
Location: 127.0.0.1
Old 12-15-2012 , 09:51   Re: [CS/CZ] Ultimate Spam Protect
Reply With Quote #2

Nice one
I will try it
__________________
The Zero is offline
The Zero
Member
Join Date: Nov 2012
Location: 127.0.0.1
Old 12-15-2012 , 09:55   Re: [CS/CZ] Ultimate Spam Protect
Reply With Quote #3

4 . Disable "antiflood.amxx"
it's important ?
__________________
The Zero is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 12-15-2012 , 10:08   Re: [CS/CZ] Ultimate Spam Protect
Reply With Quote #4

Quote:
Originally Posted by The Zero View Post
4 . Disable "antiflood.amxx"
it's important ?
YES...

Last edited by souvikdas95; 12-16-2012 at 13:55.
souvikdas95 is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 12-16-2012 , 15:26   Re: [CS/CZ] Ultimate Spam Protect (v1.2)
Reply With Quote #5

Guys, also know that it's important that if you use admin_chat_colors.amxx or any plugin that changes color of chat, then you will have to put that plugin below "spamprotect.amxx", otherwise the spams will be blocked partially, and others will be able to see the spams directly at the same time as the players are warned.
So, IF YOU ARE READING THIS, PLEASE MIND READING THE INSTRUCTIONS AGAIN so that the need for FAQs don't arise. I have tried to mention almost everything that you need to take care of before and while installing the plugin.
Regards
Souvik

Last edited by souvikdas95; 12-16-2012 at 15:27.
souvikdas95 is offline
Old 12-23-2012, 09:42
The Zero
This message has been deleted by The Zero. Reason: NOT IN THIS THEARD
WaSaAa1
Senior Member
Join Date: Dec 2011
Location: Andalusia (Spain)
Old 02-16-2013 , 20:23   Re: Ultimate Spam Protect v1.4
Reply With Quote #6

using amx_punish_ban_threshold to 0: does not ban, is disabled?
WaSaAa1 is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 02-17-2013 , 01:27   Re: Ultimate Spam Protect v1.4
Reply With Quote #7

if ban threshold is put to 0, the player will be banned right away without warning after 10 warnings....
I will be posting the next version of this after 1 month and that'll be hell awesome... already prepared but testing on some servers... ;)
souvikdas95 is offline
gamestar110
Member
Join Date: Sep 2011
Location: india
Old 02-20-2013 , 10:10   Re: Ultimate Spam Protect v1.4
Reply With Quote #8

Nic plugin
__________________
Trying to learn coding for amxx plugins
gamestar110 is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 02-27-2013 , 03:00   Re: [ASP] Advanced Spam Protection 1.5
Reply With Quote #9

New Update : Version 1.5
souvikdas95 is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 02-27-2013 , 16:42   Re: [ASP] Advanced Spam Protection 1.5
Reply With Quote #10

Thanks =]

add more picture's

what happend to -->
Quote:
amx_chat_flood_time = register_cvar("amx_chat_flood_time","1.0")
amx_chat_gag_time = register_cvar("amx_chat_gag_time","60.0");
so i need to do that ->>
Disable "antiflood.amxx"
or enable?

Last edited by Cheezpuff; 02-27-2013 at 16:45.
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
Reply



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 05:40.


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