Commit

dc9c5ee

πŸš€ We've released laravel-suspicious-login, a new open source Laravel package. πŸ‘€ It records login attempts and checks successful logins for anything unusual. You decide when to email the user or block the login. A preset is a PHP class that defines your checks and how many points each one adds. In the example below, a new device adds 30 points and a new country adds 40. Both compare against earlier trusted logins. Then you choose what happens at each risk level. In this example, 40 points sends an email. At 70, it sends an email and blocks the login. We store login history in a LoginAttempt Eloquent model, so you can query it yourself too, including risk scores and the reasons a login was flagged. In true Spatie style, you can customize all behaviour. We hope you'll like the package! ✍️ Blogpost https://freek.dev/3230-detecting-suspicious-logins-in-your-laravel-app πŸ“š Docs: https://spatie.be/docs/laravel-suspicious-login
freek.devDetecting suspicious logins in your Laravel app | freek.devImagine someone logs in to your account from the other side of the world. If you're travelling, that might be perfectly normal. But if you're sitting at home in your hometown, it's suspicious. Someone might have gotten hold of your credentials. We've released laravel-suspicious-login to notify users about suspicious logins and let you decide what happens next. It looks at signals such as the browser, location and earlier failed attempts. You can email the user, block the login or run your own a…

commit dc9c5ee