Created
April 16, 2024 07:26
-
-
Save aaronpeters/61ed6783b2353461e1330092081c47da to your computer and use it in GitHub Desktop.
CDN Finder tool - example CDN detection data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @type {cdn} */ | |
const cdn = { | |
name: "Example CDN", | |
cname: [ | |
".examplecdn.net" | |
], | |
ptr: ['examplecdn'], | |
asns: ['1234'], | |
headers: [ | |
{ | |
"x-examplecdn-cache": "" | |
}, | |
{ | |
"server-timing": "examplecdn" | |
} | |
], | |
exampleUrls: [] | |
} | |
/** | |
* @typedef {object} cdn | |
* @property {string} name Name of the CDN | |
* @property {string[]} cname Last characters of FQDN in CNAME chain that identifies the CDN | |
* @property {string[]} ptr Substring found in answer of a reverse DNS lookup (PTR lookup) that identifies the CDN | |
* @property {string[]} asns AS Number that identifies the CDN (without the 'as', e.g. '54113') | |
* @property {object[]} headers Response headers that identify the CDN, in {headerName: headerValue} format where headerValue is used for substring matching (case-insensitive); use an empty headerValue to match on any header value (= match on header name only) | |
* @property {string[]} exampleUrls Full URLs that are served through the CDN | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment