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
- スター
- 426
- フォーク
- 144
- 平均マージ
- 3日 14時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codeigniter4/shield のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
codeigniter4/shield#1384 ·
-
Bug: Auth.php Errorsオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
codeigniter4/shield#1270 · コメント 6 件 ·
-
dev enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
codeigniter4/shield#1255 · コメント 1 件 · リアクション 1 件 ·
-
dev github_actions
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
codeigniter4/shield#792 · コメント 3 件 · リアクション 1 件 ·
codeigniter4/shield の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
b:1.9 t:enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 3 日以内に返信
-
backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100