]> source.dussan.org Git - rspamd.git/commitdiff
Merge pull request #4401 from twesterhever/temp-google-firebase
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 17 Feb 2023 21:52:53 +0000 (21:52 +0000)
committerGitHub <noreply@github.com>
Fri, 17 Feb 2023 21:52:53 +0000 (21:52 +0000)
[Enhancement] Add rule to detect Google Firebase URLs

1  2 
rules/regexp/headers.lua

index c95561163434e1a982bb1e5ce7cac414746a7963,5cc107ab808659c9ce328e3c4696d89703833901..8734c8cb4da862e43926c1a554dd2265489c8e57
@@@ -916,10 -916,17 +916,17 @@@ reconf['HAS_GUC_PROXY_URI'] = 
  reconf['HAS_GOOGLE_REDIR'] = {
    re = '/\\.google\\.com\\/url\\?/{url}i',
    description = 'Has google.com/url redirection',
 -  score = 0.01,
 -  group = 'experimental'
 +  score = 1.0,
 +  group = 'url'
  }
  
+ 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',