Skip to content

Commit 6b0b8b8

Browse files
authored
collapse decision tree
1 parent 23b73c1 commit 6b0b8b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Traefik middleware to challenge individual IPs in a subnet when traffic spikes a
66

77
You may have seen CAPTCHAs added to individual forms on the web to prevent bots from spamming submissions. This plugin extends that concept to your entire site (or specific routes on your site), effectively placing your entire site behind a CAPTCHA. However, the CAPTCHA is only triggered when a spike in traffic is detected from the same IP subnet. Once the CAPTCHA is successfully completed, that IP is no longer challenged, allowing uninterrupted browsing.
88

9-
The basic logic looks like
9+
<details><summary>anti-bot decision tree</summary>
1010

1111
```mermaid
12-
flowchart LR
12+
flowchart TD
1313
Client(Client accesses path on website) --> IP{Has client passed captcha challenge in the last 24h?}
1414
IP -- Yes --> Continue(Go to original destination)
1515
IP -- No --> IP_BYPASS{Is client IP excluded by captcha-protect config?}
@@ -27,6 +27,7 @@ flowchart LR
2727
CHALLENGE -- Pass --> Continue(Go to original destination)
2828
CHALLENGE -- Fail --> Stuck
2929
```
30+
</details>
3031

3132
## Config
3233

0 commit comments

Comments
 (0)