Dev: Add bot detection for magic links
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 426
- Fork
- 144
- Merge trung bình
- 3 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codeigniter4/shield
-
Bug: Auth.php ErrorsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
codeigniter4/shield#1270 · 6 bình luận ·
-
dev enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
codeigniter4/shield#1255 · 1 bình luận · 1 reaction ·
-
dev github_actions
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
codeigniter4/shield#792 · 3 bình luận · 1 reaction ·
Tất cả issue của codeigniter4/shield
Issue tương tự
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
ProfessionalWiki/NeoWiki#1637 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Перевод устарел
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
bug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 76/100
m3ue/m3u-editor#1604 ·
Maintainer thường phản hồi trong vòng 1 ngày