Supress weird Cloudflare's anti-bot page access to Freedium

This commit is contained in:
ZhymabekRoman 2024-02-21 21:02:34 +06:00
parent bf9de74063
commit 87343ef595
3 changed files with 9 additions and 1 deletions

View file

@ -154,6 +154,10 @@
respond "Access denied" 403
}
handle_path /cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1 {
respond "Access denied" 403
}
route /* {
reverse_proxy web:7080
}

View file

@ -155,6 +155,10 @@ freedium.cfd {
respond "Access denied" 403
}
handle_path /cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1 {
respond "Access denied" 403
}
route /* {
reverse_proxy web:7080
}

View file

@ -21,7 +21,7 @@ for file in static_files:
OUTPUT_RULES.append(file_template)
ACCESS_DENIED_PATHS = ["websocket", "cdn-cgi/rum", "graphql/websocket", "onboarding/*", "wp-*", ".env", "api*", "apple-touch-icon-precomposed.png", "rss.xml", ".git/*", "apple-touch-icon-120x120.png", "apple-touch-icon-120x120-precomposed.png", "apple-touch-icon-152x152.png", "apple-touch-icon-152x152-precomposed.png", ".well-known/*"]
ACCESS_DENIED_PATHS = ["websocket", "cdn-cgi/rum", "graphql/websocket", "onboarding/*", "wp-*", ".env", "api*", "apple-touch-icon-precomposed.png", "rss.xml", ".git/*", "apple-touch-icon-120x120.png", "apple-touch-icon-120x120-precomposed.png", "apple-touch-icon-152x152.png", "apple-touch-icon-152x152-precomposed.png", ".well-known/*", "cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1"]
access_denied_paths_template = """
handle_path /{{ file }} {