mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
cli add nocaptcha list
This commit is contained in:
@@ -11,6 +11,7 @@ Some issues fixed and various improvements:
|
||||
- Added additional proof-of-work element to the challenge page, both pow+captcha must be completed
|
||||
- Avoid using a hack to resolve domain names, usea backend in haproxy instead
|
||||
- Improved the appearance of the challenge page
|
||||
- More options to CLI for nocaptcha
|
||||
|
||||
#### How to test
|
||||
|
||||
|
@@ -61,6 +61,7 @@ Commands:
|
||||
|
||||
Domain management:
|
||||
$0 domain list List all domains with ddos mode on.
|
||||
$0 domain nocaptcha List all domains with nocaptcha mode on.
|
||||
$0 domain status <domain> Get ddos mode status for a domain.
|
||||
$0 domain enable <domain> Enable ddos mode for a domain.
|
||||
$0 domain disable <domain> Disable ddos mode for a domain.
|
||||
@@ -243,6 +244,7 @@ _handle_global_management() {
|
||||
_handle_domain_management() {
|
||||
case ${1} in
|
||||
list) _domain_list;;
|
||||
nocaptcha) _nocaptcha_list;;
|
||||
status)
|
||||
_ensure_domain_passed "${2}"
|
||||
_domain_status "${2}";;
|
||||
|
Reference in New Issue
Block a user