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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity