HAProxy configuration and lua scripts implementing a challenge-response page where visitors solve a captcha and/or proof-of-work (cpu intensive) task. Intended to stop bots, spam, ddos, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
572 B

---
config_version: 2
dataplaneapi:
tls:
host: 127.0.0.1
port: 2001
resources:
update_map_files: true
maps_dir: /etc/haproxy/map
ssl_certs_dir: /etc/haproxy/ssl
scheme:
- http
transaction:
transaction_dir: /tmp/haproxy
user:
- admin:
name: admin
insecure: true
haproxy:
config_file: /etc/haproxy/haproxy.cfg
haproxy_bin: /usr/local/sbin/haproxy
reload:
reload_cmd: service haproxy reload
restart_cmd: service haproxy restart
reload_delay: 5
reload_strategy: systemd
mode: single
name: basedflare