aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authortwesterhever <40121680+twesterhever@users.noreply.github.com>2023-02-17 16:01:16 +0000
committertwesterhever <40121680+twesterhever@users.noreply.github.com>2023-02-17 16:01:16 +0000
commit08ce184740b768372e4751db7dc08d2c153a63db (patch)
treedf9b163583394869504aec5ddee9f3c4d499c8db /rules
parentbd9708cf5a156cc292263058e8f3cdbaf4ef3a68 (diff)
downloadrspamd-08ce184740b768372e4751db7dc08d2c153a63db.tar.gz
rspamd-08ce184740b768372e4751db7dc08d2c153a63db.zip
[Enhancement] Add rule to detect Google Firebase URLs
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index e493a663e..5cc107ab8 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -920,6 +920,13 @@ reconf['HAS_GOOGLE_REDIR'] = {
group = 'experimental'
}
+reconf['HAS_GOOGLE_FIREBASE_URL'] = {
+ re = '/\\.firebasestorage\\.googleapis\\.com\\//{url}i',
+ description = 'Contains firebasestorage.googleapis.com URL',
+ score = 0.01,
+ group = 'experimental'
+}
+
reconf['XM_UA_NO_VERSION'] = {
re = string.format('(!%s && !%s) && (%s || %s)',
'X-Mailer=/https?:/H',