]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Tweak HAS_GOOGLE_REDIR to detect Google AMP URLs as well 4558/head
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Wed, 2 Aug 2023 13:32:13 +0000 (13:32 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Wed, 2 Aug 2023 13:32:13 +0000 (13:32 +0000)
Rationale: https://cofense.com/blog/google-amp-the-newest-of-evasive-phishing-tactic/

rules/regexp/headers.lua

index b6b5e10d4ef776b59b45677e102d1f6d0da6ba95..42c08ca3fd37dd48b53db44930341d696afba3db 100644 (file)
@@ -912,7 +912,7 @@ reconf['HAS_GUC_PROXY_URI'] = {
 }
 
 reconf['HAS_GOOGLE_REDIR'] = {
-  re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/url\\?/{url}i',
+  re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/(amp\\/s\\/|url\\?)/{url}i',
   description = 'Has google.com/url or alike Google redirection URL',
   score = 1.0,
   group = 'url'