]> source.dussan.org Git - rspamd.git/commitdiff
[Enhancement] Add rule to detect Google Firebase URLs 4401/head
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Fri, 17 Feb 2023 16:01:16 +0000 (16:01 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Fri, 17 Feb 2023 16:01:16 +0000 (16:01 +0000)
rules/regexp/headers.lua

index e493a663e9d775e502f265d81d6e87f7a290c662..5cc107ab808659c9ce328e3c4696d89703833901 100644 (file)
@@ -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',