Skip to content

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 ​

KeyDisplay nameOfficial source
cloudflareCloudflarehttps://www.cloudflare.com/ips-v4 and ips-v6
aws_cloudfrontAWS CloudFronthttps://ip-ranges.amazonaws.com/ip-ranges.json (service CLOUDFRONT)
fastlyFastlyhttps://api.fastly.com/public-ip-list
bunnyBunny CDNhttps://bunnycdn.com/api/system/edgeserverlist (+ /ipv6)
google_cloudGoogle Cloudhttps://www.gstatic.com/ipranges/goog.json
arvancloudArvanCloudhttps://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:providers

Inspect registered providers and enablement without fetching ranges.

Released under the MIT License.