darvis/livewire-injection-stopper
Welcome to the Livewire Injection Stopper documentation. This package provides comprehensive security for your Laravel + Livewire applications.
Automatically blocks spam robots and malicious bots based on:
Scans your Livewire components for property injection vulnerabilities:
Silences bot-driven Livewire exceptions from error trackers:
CannotUpdateLockedPropertyExceptionTypeError exceptions caused by malicious payloadsReturns a configurable block response while optionally logging locally.
composer require darvis/livewire-injection-stopper
php artisan vendor:publish --tag=livewire-injection-stopper-config
php artisan livewire-injection-stopper:audit
The middleware is automatically applied to all web routes upon installation. No additional configuration required for basic protection.
If your app has a custom app/Exceptions/Handler.php with manual Sentry reporting in report(), add a guard to skip reporting when the package marks an exception as silenced.
The security audit uses pattern matching to identify:
$isAdmin, $canEdit)User, Cart)$maxQuantity)$locale)The audit is designed to minimize false positives while catching real vulnerabilities. All detections include:
The middleware automatically blocks automated form submissions from bots.
The security audit detects vulnerable price/quantity properties in e-commerce components.
Identifies authorization flags that could be manipulated to gain admin access.
Whitelist legitimate API endpoints while blocking automated scrapers.
Contributions are welcome! Please:
MIT License - see LICENSE file for details
Developed by Arvid de Jong
How can I help you explore Laravel packages today?