mirror of
https://github.com/fabriziosalmi/caddy-waf.git
synced 2025-12-23 22:27:46 -05:00
custom response example added on Caddyfile (commented) and in the sample JSON source file error.json.
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
block_countries GeoLite2-Country.mmdb RU CN KP
|
||||
# whitelist_countries GeoLite2-Country.mmdb US
|
||||
|
||||
# custom_response 403 application/json error.json
|
||||
|
||||
# rate limiter
|
||||
rate_limit {
|
||||
requests 100
|
||||
|
||||
6
error.json
Normal file
6
error.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"error": {
|
||||
"code": 403,
|
||||
"message": "Blocked by caddy-waf"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user