Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Livewire Injection Stopper Laravel Package

darvis/livewire-injection-stopper

View on GitHub
Deep Wiki
Context7

Installation Guide

Requirements

  • PHP 8.1 or higher
  • Laravel 11.0 or 12.0
  • Livewire 3.0 (for audit command)

Installation via Composer

Install the package using Composer:

composer require darvis/livewire-injection-stopper

The package will automatically register itself via Laravel's package discovery.

Publishing Configuration

Optionally, publish the configuration file to customize settings:

php artisan vendor:publish --tag=livewire-injection-stopper-config

This creates config/livewire-injection-stopper.php where you can customize:

  • Blocked user agents
  • Blocked IP addresses
  • Whitelisted routes
  • Response status codes
  • Logging preferences

Verification

Verify the installation by running the security audit:

php artisan livewire-injection-stopper:audit

The middleware is automatically applied to all web routes and will start blocking spam bots immediately.

Custom Exception Handler Note

If your app overrides report() in app/Exceptions/Handler.php and manually calls Sentry, make sure you skip reporting for silenced bot exceptions.

Example:

use Darvis\LivewireInjectionStopper\Exceptions\SilentExceptionHandler;

public function report(Throwable $exception)
{
	if (config('livewire-injection-stopper.silence_locked_property_exceptions', true)
		&& SilentExceptionHandler::shouldSilence($exception)) {
		SilentExceptionHandler::handle($exception);

		return;
	}

	parent::report($exception);
}

Next Steps

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle