Thomas Lynch
e6ed817746
update gitignore
2 years ago
Thomas Lynch
727bca1623
close #2
2 years ago
Thomas Lynch
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
2 years ago
Thomas Lynch
bc55ce5a93
reduce concurrency of client check again to max 4 thread
2 years ago
Thomas Lynch
b21cc9e90d
expose port 80 in docker-compsoe example
2 years ago
Thomas Lynch
54be416a39
add crypto.subtle check for lokinet and idiots using non-tor browser for .onion
3 years ago
Thomas Lynch
876d0835bc
change script threads to hardwareconcurrency/2 instead of -1, because it can still cause browsers to be sluggish or crash moreso on powerful machines
3 years ago
Thomas Lynch
6d9ec35d9d
readme improvement
3 years ago
Thomas Lynch
e651d25dbb
remove unnecessary layer of tcp mode for stripping proxy, works just fine without it
3 years ago
Thomas Lynch
c03a16214b
close #5
3 years ago
Thomas Lynch
bec6bddf40
close #4
3 years ago
Thomas Lynch
7b11645190
samesite strict and secure in hcaptcha script set-cookie
3 years ago
Thomas Lynch
c16a554754
charset=utf8 to some service repsonses, "ray id" show in captcha page
3 years ago
Thomas Lynch
85b0d6cd52
cli add nocaptcha list
3 years ago
Thomas Lynch
a854ed9822
samesite and secure to pow cookie, fix broken legacy method, and share setTimeout method
3 years ago
Thomas Lynch
48382434c4
change haproxy pathing from /usr/share/etc to /etc
3 years ago
Thomas Lynch
0a6b21f93b
add "domain mode <domain>" to toggle domain in nocaptcha map, and add nocaptcha status in "domain status <domain>" close #1
3 years ago
Thomas Lynch
5a4a02beba
switch 2 maps, one for ddos enabled, the other to disable captcha leaving only POW
...
minor change script messages
todo: update CLI to allow changing
3 years ago
Thomas Lynch
5e04ebd962
fix footer overflow
3 years ago
Thomas Lynch
508e45ae9c
change path for scripts
3 years ago
Thomas Lynch
e6db267f5e
readme updates
3 years ago
Thomas Lynch
77ad645815
visual tweaks and minor script improvement
3 years ago
Thomas Lynch
9f26e53798
combine POW and captcha into one
3 years ago
Thomas Lynch
5c7e796440
remove now unused and unnecessary resolving and hostname functions
3 years ago
Thomas Lynch
0c0fa22d6f
change cookie to not expire instead of client-controlled expiry (duh)
...
use bucket duration as part of secret generation
xxh32 -> xxh64
3 years ago
Thomas Lynch
f7f6ecd276
gitignore docker-compose, remove some unnecessary comments, change cookie name
3 years ago
Thomas Lynch
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
3 years ago
Eugene Prodan
7a1a91f0e8
feat: add per-user cookie generation
3 years ago
Eugene Prodan
26ae929644
refactor: get rid of luarocks completely, better exceptions handling
3 years ago
Eugene Prodan
aafc04c6a1
docs: add installation instructions
3 years ago
Eugene Prodan
a1b93bf80a
docs: tic lua deps
3 years ago
Eugene Prodan
ff669a9e64
refactor: organize lua dependencies
3 years ago
Eugene Prodan
55ad0713bb
docs: add license file
3 years ago
Eugene Prodan
30b2d4ed91
lint: make ddos-cli shellcheck-compliant
3 years ago
Eugene Prodan
d4483fe161
docs: add to-do list
3 years ago
Eugene Prodan
a4b4e84544
feat: added CLI to manage ddos protection system
3 years ago
Eugene Prodan
fc978cbca6
docs: added interaction diagram
3 years ago
Eugene Prodan
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
3 years ago
Eugene Prodan
d2137f445e
feat: add functionality to check if a domain is ratelimited
3 years ago
followcube
bda2f31996
refactor: sets ratelimit as action
3 years ago
followcube
7b83affae5
asdas
3 years ago
followcube
182b6e0000
rasras
3 years ago
mora9715
5b257476ad
Merge pull request #2 from mora9715/feature/redirect-action
...
feat: added action to validate ddos protection cookie
3 years ago
Eugene Prodan
888a11da83
feat: added action to validate ddos protection cookie
3 years ago
Eugene Prodan
0f7bd9951b
feat: added functionality to set quasi-random cookie if captcha is passed
3 years ago
Eugene Prodan
0fde9b873b
feat: added captcha serving service to haproxy
3 years ago
mora9715
1dff57f048
Merge pull request #1 from mora9715/feature/custom-image
...
feat: building haproxy from scratch with required lua modules
3 years ago
Eugene Prodan
e67aced62e
feat: building haproxy from scratch with required lua modules
3 years ago
Eugene Prodan
65c93fa871
feat: initial commit
3 years ago