Skip to content

Commit a64b7e9

Browse files
committed
up
1 parent 1482c18 commit a64b7e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crowdsec-docs/docs/appsec/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,19 @@ pre_eval:
119119

120120
### Disable appsec for a specific FQDN
121121

122-
If your reverse-proxy forwards all requests to crowdsec, regardless of the FQDN, you can disable the appsec for specific domain with a custom appsec-config:
122+
If your reverse-proxy forwards all requests to crowdsec, regardless of the FQDN, you can disable the appsec for specific domain with a custom appsec-config (ie, the request will be always allowed):
123123

124124
```yaml title="/etc/crowdsec/appsec-configs/my_config.yaml"
125125
name: custom/my_config
126-
pre_eval:
126+
on_match:
127127
- filter: req.URL.Host == "foo.com"
128128
apply:
129129
- CancelEvent()
130130
- CancelAlert()
131131
- SetRemediation("allow")
132132
```
133133

134-
With this config, the rules will still be evaluated, but no alert or event will be generated, and if a rule matches, the remediation will be set to `allow`(ie, instruct the bouncer to let the request through).
134+
With this config, the rules will still be evaluated, but if a rule matches no alert or event will be generated, and the remediation will be set to `allow`(ie, instruct the bouncer to let the request through).
135135

136136
## Appsec configuration
137137

0 commit comments

Comments
 (0)