commit 73280f3: [Minor] Lua_magic: Add another spammy JS pattern
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Aug 24 12:28:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-08-24 13:24:53 +0100
URL: https://github.com/rspamd/rspamd/commit/73280f3dab76021bd7f04c35448d709cbfb35537 (HEAD -> master)
[Minor] Lua_magic: Add another spammy JS pattern
---
lualib/lua_magic/heuristics.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index 0a0cb7471..d4918e978 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -65,6 +65,7 @@ local txt_patterns = {
html = {
{[[(?i)<html\b]], 32},
{[[(?i)<script\b]], 20}, -- Commonly used by spammers
+ {[[<script\s+type="text\/javascript">]], 31}, -- Another spammy pattern
{[[(?i)<\!DOCTYPE HTML\b]], 33},
{[[(?i)<body\b]], 20},
{[[(?i)<table\b]], 20},
More information about the Commits
mailing list