Dev: Add bot detection for magic links
评估
这个 Issue 还没有评估数据。
描述
In one of my projects we ran into issues with Android mobile devices and SMS where the OS was trying to be too helpful and would visit the links to ensure they were safe, or prep for read aloud, etc, and it would invalidate the magic link since it had already been visited.
While this was specifically for SMS, I can see email clients attempting to be helpful breaking the magic link system, also. Additionally, there is potential use by developers using that link for SMS messages.
There are 2 solutions and we might want to consider both long-term.
- Analyze the user-agents and/or IP address of known bots that might interfere and block their attempt at that URL.
- A better long-term alternative is to make it something that requires user input, like sending 4-6 numbers in the email and require user input so we don't have to play cat and mouse with bots.
Here's the list of user agent strings that we've used and is working so far:
- Googlebot
- Bingbot
- Slurp
- DuckDuckBot
- Baiduspider
- Sogou
- Exabot
- ia_archiver
- Google-PageRenderer
- Google-Read-Aloud
- Google-Safety
- bot
- crawler
- spider
- Yandex
- BingPreview
- 主要语言
- PHP
- 星标
- 427
- 派生
- 143
- 平均合并
- 3 天 13 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codeigniter4/shield 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 35/100
codeigniter4/shield#1270 · 6 条评论 ·
-
dev enhancement
难度 5/5 一周以上 新手友好度 35/100
codeigniter4/shield#1255 · 1 条评论 · 1 个 reaction ·
-
dev github_actions
难度 3/5 1-2 天 新手友好度 35/100
codeigniter4/shield#792 · 3 条评论 · 1 个 reaction ·
查看 codeigniter4/shield 的全部 Issue
相似的 Issue
-
sync-en
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 4 天内回复
-
feature request
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Automattic/blocks-engine#2803 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
hestiacp/hestiacp#5798 · 2 条评论 ·
维护者通常 1 天内回复
-
Bug Component: HTTP Component: Telemetry
难度 2/5 1-3 小时 新手友好度 74/100