Skip to content

Commit 533020d

Browse files
committed
Update WAF configuration and add browser-friendly rules
- Increased anomaly threshold to reduce false positives. - Added new rules for browser integrity checks and logging. - Improved SQL injection and XSS rules to prevent false positives. - Introduced a new rules file for browser-friendly traffic handling.
1 parent bf367b5 commit 533020d

File tree

3 files changed

+428
-13
lines changed

3 files changed

+428
-13
lines changed

Caddyfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
# WAF Plugin runs on all requests first
2020
waf {
2121
metrics_endpoint /waf_metrics
22-
anomaly_threshold 10
23-
block_countries GeoLite2-Country.mmdb RU CN KP
22+
anomaly_threshold 20
23+
# Using modified rules file that prevents false positives with Chrome browser requests
24+
rule_file rules.json
25+
# block_countries GeoLite2-Country.mmdb RU CN KP
2426
# whitelist_countries GeoLite2-Country.mmdb US
2527

2628
# custom_response 403 application/json error.json
@@ -43,8 +45,6 @@
4345
retry_interval 1h
4446
}
4547

46-
rule_file rules.json
47-
# rule_file rules/wordpress.json
4848
ip_blacklist_file ip_blacklist.txt
4949
dns_blacklist_file dns_blacklist.txt
5050
log_severity info

0 commit comments

Comments
 (0)