Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Dev: Add bot detection for magic links

Đang mở
#1,293 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

@datamweb đang làm issue này rồi.

Từ ngày 2/12/2025.

  • #1300 của @datamweb — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

dev

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.

  1. Analyze the user-agents and/or IP address of known bots that might interfere and block their attempt at that URL.
  2. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codeigniter4/shield

Tất cả issue của codeigniter4/shield

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.