[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:
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 :
- Put "ASP.amxx" in [ addons/amxmodx/plugins/ ]
- Write "ASP.amxx" at the TOP of [ addons/amxmodx/configs/plugins.ini ]
- Create a New Folder in [ addons/amxmodx/configs/ ] and Name it "ASP"
- 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 :