mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
ae2564d4dbb7383f6b4d3313c5980b904e0bf0ea
add on-demand global / per-domain ddos protection enabling add automatic redirect from captcha page back to the requested source prettify the captcha page
HaProxy DDoS protection system PoC
If there is an unusual HTTP requests flow to a specific domain, the system detects it and triggers DDoS protection mode. Each new client will be first forced to complete hCaptcha, before proceeding to the website.
How to test
- export hcaptcha sitekey and secret:
export HCAPTCHA_SITEKEY=xxxXXxxx
export HCAPTCHA_SECRET=xxxXXxxx
- run docker compose:
docker compose up
- visit http://127.0.0.1/captcha
Description
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.
Readme
938 KiB
Languages
Lua
94.3%
JavaScript
4.1%
Dockerfile
1.1%
HTML
0.4%
Shell
0.1%