Skip to content

Commit 151c2c1

Browse files
committed
add bot detection section to the magic link documentation
1 parent dc73531 commit 151c2c1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/references/magic_link_login.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ in the **app/Config/Auth.php** file.
2323
public int $magicLinkLifetime = HOUR;
2424
```
2525

26+
### Bot Detection
27+
28+
Some apps or devices may try to be "too helpful" by automatically visiting links - for example, to check if they're safe or to prepare for read-aloud features. Since this is a one-time magic link, such automated visits could invalidate it. To prevent this, Shield relies on the framework's `UserAgents::robots` config property (**app/Config/UserAgents.php**) to filter out requests that are likely initiated by non-human agents.
29+
2630
## Responding to Magic Link Logins
2731

2832
!!! note

0 commit comments

Comments
 (0)