Laravel Surveillance is a package by Neelkanth Kaushik to put malicious users, IP addresses, and anonymous browser fingerprints under surveillance. Once a user is under supervision, this package logs the URLs they visit and even blocks users deemed malicious.
This package consists of a CLI to manage surveillance and a PHP API to survey users programmatically.
Here’s a few CLI examples of what this package can do:
# Survey ip, user id, browser fingerprints php artisan surveillance:enable ip 184.108.40.206 php artisan surveillance:enable userid 1234 php artisan surveillance:enable fingerprint hjP0tLyIUy7SXaSY6gyb # Block IP, user id, etc. php artisan surveillance:block ip 220.127.116.11 php artisan surveillance:block userid 1234 php artisan surveillance:block fingerprint hjP0tLyIUy7SXaSY6gyb
Using the package’s PHP API, you can do the same things programmatically:
use Neelkanth\Laravel\Surveillance\Services\Surveillance; // Enable IP surveillance Surveillance::manager() ->type("ip") ->value("18.104.22.168") ->enableSurveillance(); // Block User Surveillance::manager() ->type("userid") ->value(2121) ->blockAccess();
You can learn more about this package, get full installation instructions, and view the source code on GitHub at neelkanthk/laravel-surveillance.Filed in: News
Join 31,000+ others and never miss out on new tips, tutorials, and more.
- Senior Laravel Developer
- Senior Full-Stack Engineer
[REMOTE: USA Only] All Other Applications Will be Rejected Immediately"
- Senior Full Stack PHP Developer
Motto Design Studio
- Software Engineer
Remote, USA Only
- Lead Backend PHP Developer
ABOUT YOU GmbH
Website down? SSL invalid? You should use PingPing to get instantly notified! (sponsor)
PingPing.io is the simplest uptime and SSL monitoring service in the world when your website is down or your certific…
Using Sanctum to authenticate a mobile app
Sanctum is Laravel’s lightweight API authentication package. In my last article, we looked at authenticating a…