diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-02-17 21:52:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 21:52:53 +0000 |
commit | 172fb63b8111b0073bebf138b861d473ece3b8a7 (patch) | |
tree | 2c93d8744ee320db4a7674dc2c63e404471b359d /rules | |
parent | 7795ef718e61cf34023a8c20f0b389c3cdea8318 (diff) | |
parent | 08ce184740b768372e4751db7dc08d2c153a63db (diff) | |
download | rspamd-172fb63b8111b0073bebf138b861d473ece3b8a7.tar.gz rspamd-172fb63b8111b0073bebf138b861d473ece3b8a7.zip |
Merge pull request #4401 from twesterhever/temp-google-firebase
[Enhancement] Add rule to detect Google Firebase URLs
Diffstat (limited to 'rules')
-rw-r--r-- | rules/regexp/headers.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index c95561163..8734c8cb4 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -920,6 +920,13 @@ reconf['HAS_GOOGLE_REDIR'] = { 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', |