You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Under **When incoming requests match**, select **Edit expression** and enter: `(http.request.uri.path eq "/login" and http.user_agent eq "")`
220
+
3. Under **When incoming requests match**, select **Edit expression** and enter: `(http.request.uri.path eq "/login" and http.request.method eq "POST")`
221
221
4. Under **Then take action**, select _Managed Challenge_ from the **Choose action** dropdown.
222
222
5. Under **Place at**, leave the **Select order** dropdown set to _Last_. This places the rule after the verified bot exception.
223
223
6. Select **Deploy**.
@@ -317,15 +317,15 @@ For details on Skip action configuration, refer to [Configure a rule with the Sk
317
317
318
318
**Scenario 2: Malicious traffic is still getting through.**
319
319
320
-
You see bot activity in Security Events that your current rules do not catch. Bots that use real-looking headers or stay under rate limits can evade single-signal rules. Combining multiple signals in one rule narrows the target. For example, to challenge requests to `/login` that have both an empty user agent and a specific URI path:
320
+
You see bot activity in Security Events that your current rules do not catch. Bots that stay under rate limits or evade single-signal rules require combining multiple signals. For example, to challenge POST requests to `/login` that are not from verified bots:
321
321
322
322
1. Go to Application Security custom rules.
323
323
2. Select **Create rule**.
324
324
3. Enter a descriptive name.
325
325
4. Under **When incoming requests match**, select **Edit expression** and enter:
326
326
327
327
```txt
328
-
(http.request.uri.path eq "/login" and http.user_agent eq "" and http.request.method eq "POST")
328
+
(http.request.uri.path eq "/login" and http.request.method eq "POST" and not cf.client.bot)
329
329
```
330
330
331
331
5. Under **Then take action**, select _Managed Challenge_.
0 commit comments