aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-06-22 23:02:30 +0100
committerGitHub <noreply@github.com>2023-06-22 23:02:30 +0100
commit73616c41916dbb0f76bd7f1275424ad5e84af154 (patch)
tree5f7f478e02f83c127a1fc33a379407bc0e41d2a1 /rules
parent41fb5745e04312ddeac66c4120575e88167b8466 (diff)
parent472537fc8301704737e60aa2dbc6d308c7d1be48 (diff)
downloadrspamd-73616c41916dbb0f76bd7f1275424ad5e84af154.tar.gz
rspamd-73616c41916dbb0f76bd7f1275424ad5e84af154.zip
Merge pull request #4497 from twesterhever/temp-improve-has-google-redir
[Enhancement] Improve detection of Google redirection URLs
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 16a20afca..4a14fafc1 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -912,8 +912,8 @@ reconf['HAS_GUC_PROXY_URI'] = {
}
reconf['HAS_GOOGLE_REDIR'] = {
- re = '/\\.google\\.com\\/url\\?/{url}i',
- description = 'Has google.com/url redirection',
+ re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/url\\?/{url}i',
+ description = 'Has google.com/url or alike Google redirection URL',
score = 1.0,
group = 'url'
}