Download the PHP package arubacao/aws-ip-range-middleware without Composer
On this page you can find all versions of the php package arubacao/aws-ip-range-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arubacao/aws-ip-range-middleware
More information about arubacao/aws-ip-range-middleware
Files in arubacao/aws-ip-range-middleware
Package aws-ip-range-middleware
Short Description Laravel Middleware for Amazon Web Services (AWS) IP Address Range
License MIT
Homepage https://github.com/arubacao/aws-ip-range-middleware
Informations about the package aws-ip-range-middleware
Laravel Middleware for Amazon Web Services (AWS) IP Address Range Validation
This package allows for validation of incoming requests against the official Amazon Web Services (AWS) IP Address Range. Use this to determine if an incoming request actually comes from the AWS infrastructure e.g. for Simple Notification Service (SNS) payloads.
Features
- Passes incoming HTTP requests from AWS, rejects everything else with a
403. - AWS IP address range is fetched on demand and therefore always up-to-date.
- Caches the parsed IP address range (default: 24 hours).
- Source URL, cache key, and TTL are configurable.
Supported versions
Actively tested in CI:
| PHP | Laravel |
|---|---|
8.1 |
9.*, 10.* |
8.2 |
10.*, 11.* |
8.3 |
11.*, 12.* |
8.4 |
11.*, 12.* |
This package requires PHP 8.1+ and Laravel 9+.
Installation
Install this package via composer:
Laravel registers the service provider automatically via package discovery. If package discovery is disabled, add the provider manually in config/app.php:
Registering the middleware
Assign the middleware a key in your app/Http/Kernel.php:
Usage
You can also pass the fully qualified class name (no Kernel registration required):
Configuration
Publish the config file to override the defaults:
This creates config/aws-ip-range.php:
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
- Christopher Lass
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of aws-ip-range-middleware with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/cache Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
symfony/http-foundation Version ^6.0|^7.0|^8.0