Dev: Add bot detection for magic links
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- PHP
- Estrellas
- 426
- Forks
- 144
- Merge medio
- 3 d 14 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codeigniter4/shield
-
It allows multiple device loginAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
codeigniter4/shield#1384 ·
-
Bug: Auth.php ErrorsAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
codeigniter4/shield#1270 · 6 comentarios ·
-
dev enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
codeigniter4/shield#1255 · 1 comentario · 1 reacción ·
-
dev github_actions
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
codeigniter4/shield#792 · 3 comentarios · 1 reacción ·
Todos los issues de codeigniter4/shield
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días
-
b:1.9 t:enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 3 días
-
backend bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100