mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #117] Enable under attack mode by country, ASN #90
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#90
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 @sanvu88 on GitHub (Nov 25, 2022).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/117
Don't know if the module supports enable under attack mode by country, ASN ? If possible, hope you can support this feature. Thank so much.
@hibobmaster commented on GitHub (Nov 26, 2022):
You can use geoip2 module.
https://docs.addesp.com/ngx_waf/advance/directive.html#waf-under-attack
https://github.com/leev/ngx_http_geoip2_module/issues/76
@sanvu88 commented on GitHub (Nov 28, 2022):
But when i try with the following configuration
map $geoip_country_code $block_country {
US 0;
default 1;
}
server {
....
waf on;
if ($block_country){
waf_under_attack on;
}
}
I get the error message "waf_under_attack" directive is not allowed here
@hibobmaster commented on GitHub (Nov 28, 2022):
I got the same error. Let wait for help from developer, but she is busy with other projects.
@lequi commented on GitHub (Oct 28, 2023):
Same error.