mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
feat: added CLI to manage ddos protection system
This commit is contained in:
@ -19,8 +19,8 @@ frontend http-in
|
||||
acl captcha_passed var(txn.captcha_passed) -m bool
|
||||
acl on_captcha_url path -m beg /captcha
|
||||
|
||||
http-request lua.hcaptcha-redirect if !{ path -m beg /captcha }
|
||||
http-request use-service lua.hcaptcha-view if { path /captcha }
|
||||
http-request use-service lua.hcaptcha-view if on_captcha_url
|
||||
http-request lua.hcaptcha-redirect if !on_captcha_url ddos_mode_enabled OR domain_under_ddos
|
||||
http-request redirect location /captcha?%[capture.req.uri] code 301 if !captcha_passed !on_captcha_url ddos_mode_enabled OR domain_under_ddos
|
||||
|
||||
default_backend servers
|
||||
|
Reference in New Issue
Block a user