Providers
A provider is a named source of edge / CDN IP ranges. EdgeTrust ships first-party providers backed by official published lists, and you can register custom providers for private or regional proxies.
Built-in providers
| Key | Display name | Official source |
|---|---|---|
cloudflare | Cloudflare | https://www.cloudflare.com/ips-v4 and ips-v6 |
aws_cloudfront | AWS CloudFront | https://ip-ranges.amazonaws.com/ip-ranges.json (service CLOUDFRONT) |
fastly | Fastly | https://api.fastly.com/public-ip-list |
bunny | Bunny CDN | https://bunnycdn.com/api/system/edgeserverlist (+ /ipv6) |
google_cloud | Google Cloud | https://www.gstatic.com/ipranges/goog.json |
arvancloud | ArvanCloud | https://www.arvancloud.ir/fa/ips.txt |
Google Cloud ranges are documented as Google-owned frontend IP ranges from goog.json. Cloud CDN / load-balancer trust scenarios can be narrower than the full Google IP space — read the Google Cloud guide before enabling.
Enable and disable
ini
EDGE_TRUST_PROVIDERS=cloudflare
# EDGE_TRUST_PROVIDERS=cloudflare,aws_cloudfront,arvancloud
# EDGE_TRUST_PROVIDERS=*Unset defaults to cloudflare. Empty or * enables every registered provider. When a non-empty list is set, omitted keys are disabled.
Override how a provider resolves data:
php
'provider_sources' => [
// 'cloudflare' => 'provider', // bundled | provider | registry | custom
],Registration
Custom providers are registered at boot or via config:
php
use Hosni\EdgeTrust\Facades\EdgeTrust;
EdgeTrust::registerProvider('my-proxy', MyCustomProxyProvider::class);See Custom providers.
Listing providers
bash
php artisan edge-trust:providersInspect registered providers and enablement without fetching ranges.