Skip to content

Commit

Permalink
Merge pull request #4558 from twesterhever/temp-detect-google-amp-urls
Browse files Browse the repository at this point in the history
[Minor] Tweak HAS_GOOGLE_REDIR to detect Google AMP URLs as well
  • Loading branch information
vstakhov committed Aug 3, 2023
2 parents 30dce5f + d47473f commit 413cb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/regexp/headers.lua
Expand Up @@ -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'
Expand Down

0 comments on commit 413cb5c

Please sign in to comment.