Commit Graph

12 Commits

Author SHA1 Message Date
d3d4b12607 fix in some situations useragent can be nil 2022-04-26 13:07:12 +10:00
d38713b4cb haproxy snapshot fixes bug, and use url biuld query to make body for hcaptcha post 2022-01-19 18:01:08 +11:00
727bca1623 close #2 2021-12-01 13:59:14 +11:00
2b0b15781e fix useragent bug in utils due to not using req_fhdr instead of req_hdr http://cbonte.github.io/haproxy-dconv/2.4/configuration.html\#7.3.6-req.fhdr close #3 2021-12-01 13:55:05 +11:00
9f26e53798 combine POW and captcha into one 2021-11-24 05:23:33 +11:00
5c7e796440 remove now unused and unnecessary resolving and hostname functions 2021-11-24 01:10:44 +11:00
0c0fa22d6f change cookie to not expire instead of client-controlled expiry (duh)
use bucket duration as part of secret generation
xxh32 -> xxh64
2021-11-24 01:09:11 +11:00
6400d98975 make the useragent header fetch properly
add a salt to the generate_secret function -- that was kinda important right? lol
just pass through to `end` if not POST or GET
make it not use calls to hostname and dig in lua scripts, use haproxy backend resolving instead
improve the template a lot and make it theme-matched to my site and similar to ngx_http_js_challenge robot page
fix various bugs
2021-11-24 00:34:41 +11:00
7a1a91f0e8 feat: add per-user cookie generation 2021-06-14 23:00:04 +03:00
26ae929644 refactor: get rid of luarocks completely, better exceptions handling 2021-06-14 01:21:38 +03:00
ff669a9e64 refactor: organize lua dependencies 2021-06-12 00:55:15 +03:00
ae2564d4db refactor: remove ratelimiting functionality,
add on-demand global / per-domain ddos protection enabling
add automatic redirect from captcha page back to the requested source
prettify the captcha page
2021-06-10 23:08:45 +03:00