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

Ipwhitelisting Laravel Package

webtoppings/ipwhitelisting

View on GitHub
Deep Wiki
Context7

IP Whitelisting

Simple Laravel Package to increase the security of the website by permitting access for users having whitelisted IP Addresses.

In this package, you can add IP Addresses into whitelist which you want to allow access to your site. All other users coming from IPs which are not in whitelist will automatically blocked and won't access site.

Installation

via composer

composer require webtoppings/ipwhitelisting

Supports

Laravel 5.5 or higher

Configure

Run below commands to publish views and migrate tables

php artisan vendor:publish

php artisan migrate

Usage

Manage Whitelist

Add below route to your administrator route group to manage whitelist IP Addresses

Route::resource('/ipwhitelisting', '\WebToppings\IPWhitelisting\IPWhitelistingController');

Restrict Access

Use middleware to restrict IP Addresses

'IPBlocking' => \WebToppings\IPWhitelisting\Middlewares\IPBlocking::class,

Add IPBlocking middleware to route group for which you want to restrict access.

Users will be redirect to "403 | Forbidden" page if their IP won't exist on whitelist.

License

MIT

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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
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
christhompsontldr/laravel-inky
spatie/mailcoach-vapor