mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #152] waf_captcha parameter 'max_fails' option 'refreshes/tries' appears to always be 20 #109
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @altCensored on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/152
thank-you for some great software that allows us to serve captchas as necessary.
when using the parameter 'max_fails' for waf_captcha, it appears that the 'refreshes/tries' option is always 20, regardless of the value i use. the 'time' option changes per the value i use and works as expected:
waf_captcha on prov=hCaptcha secret=xxx file=/opt/xxx/hCaptcha_english.html max_fails=20:60m zone=waf:captcha;
is working the same for me as:
waf_captcha on prov=hCaptcha secret=xxx file=/opt/xxx/hCaptcha_english.html max_fails=3:60m zone=waf:captcha;
txs again
@ADD-SP commented on GitHub (Aug 17, 2025):
Did you use
nginx -s reloadto try the newmax_failsparameters? Since thenginx -s reloadkeeps the original content of shared memory, the old counter will not be reset after reloading.Could you try
nginx -s stop?@altCensored commented on GitHub (Aug 17, 2025):
i normally use systemctl restart nginx.
i just tried:
nginx -s stop
systemctl start nginx
with the same result.