Skip to main content

Module well_known

Module well_known 

Source
Expand description

Canonical ASN values for major public CDNs and infrastructure providers.

Use these as the source-of-truth CapabilityRequirement::require_asn / ProxyCapabilities::asn values when filtering the proxy pool by Autonomous System.

The list is ordered by frequency-of-use in scraping guides and the 2026 guide’s coverage of vendor fingerprinting. Values come from the public IANA AS-number registry; they are stable and do not change without a formal re-assignment.

§Example

use stygian_proxy::types::{CapabilityRequirement, ProxyCapabilities};
use stygian_proxy::types::well_known::KNOWN_ASN_CLOUDFLARE;

let caps = ProxyCapabilities {
    asn: Some(KNOWN_ASN_CLOUDFLARE),
    ..Default::default()
};
let req = CapabilityRequirement {
    require_asn: Some(KNOWN_ASN_CLOUDFLARE),
    ..Default::default()
};
assert!(caps.satisfies(&req));

Constants§

ALL_KNOWN_ASNS
Every constant in this module, in declaration order. Useful for exhaustiveness checks and operators that want a quick “is this AS a known CDN / major provider?” lookup.
KNOWN_ASN_AKAMAI
Akamai AS — 20940 (the public AS used by most Akamai edges).
KNOWN_ASN_AZURE
Microsoft Azure AS — 8075.
KNOWN_ASN_CLOUDFLARE
Cloudflare AS — 13335.
KNOWN_ASN_CLOUDFRONT
Amazon CloudFront AS — 16509.
KNOWN_ASN_DIGITALOCEAN
DigitalOcean AS — 14061 (a common datacenter provider that shows up on free-list feeds).
KNOWN_ASN_EDGECAST
Verizon Digital Media Services (Edgecast) AS — 15133.
KNOWN_ASN_FASTLY
Fastly AS — 54113.
KNOWN_ASN_GOOGLE
Google AS — 15169 (covers Google Cloud, YouTube egress).
KNOWN_ASN_HETZNER
Hetzner AS — 24940 (a common datacenter provider that shows up on free-list feeds).
KNOWN_ASN_HIGHWINDS
StackPath / Highwinds AS — 20446.
KNOWN_ASN_LIMELIGHT
Limelight Networks AS — 22822.
KNOWN_ASN_LINODE
Linode / Akamai Connected Cloud AS — 63949.
KNOWN_ASN_OVH
OVH AS — 16276 (a common datacenter provider that shows up on free-list feeds).
KNOWN_ASN_SUCURI
Sucuri AS — 51167.
KNOWN_ASN_VULTR
Vultr AS — 204957.