{"id":13707025,"url":"https://github.com/projectdiscovery/cdncheck","last_synced_at":"2026-04-02T17:18:03.039Z","repository":{"id":38353957,"uuid":"277060539","full_name":"projectdiscovery/cdncheck","owner":"projectdiscovery","description":"A utility to detect various technology for a given IP address.","archived":false,"fork":false,"pushed_at":"2026-03-22T00:18:04.000Z","size":4065,"stargazers_count":940,"open_issues_count":7,"forks_count":129,"subscribers_count":19,"default_branch":"main","last_synced_at":"2026-03-22T14:31:29.872Z","etag":null,"topics":["api","cdn","cli","cname","detection","lib","technology"],"latest_commit_sha":null,"homepage":"https://projectdiscovery.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectdiscovery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-04T07:22:38.000Z","updated_at":"2026-03-22T00:17:57.000Z","dependencies_parsed_at":"2023-02-18T09:00:44.915Z","dependency_job_id":"243f33bc-b392-4667-ab6e-73ffe6129c52","html_url":"https://github.com/projectdiscovery/cdncheck","commit_stats":{"total_commits":319,"total_committers":21,"mean_commits":15.19047619047619,"dds":0.5141065830721003,"last_synced_commit":"3a0ffaf7768032ded0bec64bdea95829541cf779"},"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"purl":"pkg:github/projectdiscovery/cdncheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fcdncheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fcdncheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fcdncheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fcdncheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectdiscovery","download_url":"https://codeload.github.com/projectdiscovery/cdncheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fcdncheck/sbom","scorecard":{"id":746534,"data":{"date":"2025-08-11","repo":{"name":"github.com/projectdiscovery/cdncheck","commit":"c9205214a959db90bea7a08ac1c2a9ef7cc8902f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"25 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:14","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:15","Warn: no topLevel permission defined: .github/workflows/autorelease-tag.yml:1","Warn: no topLevel permission defined: .github/workflows/build-test.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/dockerhub-push.yml:1","Warn: no topLevel permission defined: .github/workflows/fingerprint-update.yml:1","Warn: no topLevel permission defined: .github/workflows/functional-test.yml:1","Warn: no topLevel permission defined: .github/workflows/lint-test.yml:1","Warn: no topLevel permission defined: .github/workflows/release-binary.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.1.31 not signed: https://api.github.com/repos/projectdiscovery/cdncheck/releases/238811773","Warn: release artifact v1.1.30 not signed: https://api.github.com/repos/projectdiscovery/cdncheck/releases/237096460","Warn: release artifact v1.1.29 not signed: https://api.github.com/repos/projectdiscovery/cdncheck/releases/235410574","Warn: release artifact v1.1.28 not signed: https://api.github.com/repos/projectdiscovery/cdncheck/releases/233719048","Warn: release artifact v1.1.27 not signed: https://api.github.com/repos/projectdiscovery/cdncheck/releases/232010800","Warn: release artifact v1.1.31 does not have provenance: https://api.github.com/repos/projectdiscovery/cdncheck/releases/238811773","Warn: release artifact v1.1.30 does not have provenance: https://api.github.com/repos/projectdiscovery/cdncheck/releases/237096460","Warn: release artifact v1.1.29 does not have provenance: https://api.github.com/repos/projectdiscovery/cdncheck/releases/235410574","Warn: release artifact v1.1.28 does not have provenance: https://api.github.com/repos/projectdiscovery/cdncheck/releases/233719048","Warn: release artifact v1.1.27 does not have provenance: https://api.github.com/repos/projectdiscovery/cdncheck/releases/232010800"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/projectdiscovery/.github/SECURITY.md:1","Info: Found linked content: github.com/projectdiscovery/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/projectdiscovery/.github/SECURITY.md:1","Info: Found text in security policy: github.com/projectdiscovery/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/autorelease-tag.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/autorelease-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/autorelease-tag.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/autorelease-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/autorelease-tag.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/autorelease-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/autorelease-tag.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/autorelease-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/autorelease-tag.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/autorelease-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/autorelease-tag.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/autorelease-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dep-auto-merge.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/dep-auto-merge.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dep-auto-merge.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/dep-auto-merge.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dockerhub-push.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/dockerhub-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dockerhub-push.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/dockerhub-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dockerhub-push.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/dockerhub-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dockerhub-push.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/dockerhub-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dockerhub-push.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/dockerhub-push.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fingerprint-update.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/fingerprint-update.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fingerprint-update.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/fingerprint-update.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/fingerprint-update.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/fingerprint-update.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/functional-test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/functional-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/functional-test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/functional-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/lint-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/lint-test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/lint-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-binary.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/release-binary.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-binary.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/release-binary.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-binary.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/projectdiscovery/cdncheck/release-binary.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:10: pin your Docker image by updating alpine:3.18.2 to alpine:3.18.2@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1","Info:   0 out of  20 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/dockerhub-push.yml:11"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3605 / GHSA-7vpp-9cxj-q8gv","Warn: Project is vulnerable to: GO-2024-2698 / GHSA-rhh4-rh7c-7r5v","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T18:56:28.583Z","repository_id":38353957,"created_at":"2025-08-22T18:56:28.583Z","updated_at":"2025-08-22T18:56:28.583Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cdn","cli","cname","detection","lib","technology"],"created_at":"2024-08-02T22:01:15.723Z","updated_at":"2026-04-02T17:18:03.020Z","avatar_url":"https://github.com/projectdiscovery.png","language":"Go","readme":"\u003ch1 align=\"center\"\u003e\n cdncheck\n\u003cbr\u003e\n\u003c/h1\u003e\n\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-_red.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/badge/github.com/projectdiscovery/cdncheck\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/projectdiscovery/cdncheck\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/projectdiscovery/cdncheck/pkg/cdncheck\"\u003e\u003cimg src=\"https://img.shields.io/badge/go-reference-blue\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/projectdiscovery/cdncheck/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/projectdiscovery/cdncheck\"\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/pdiscoveryio\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/pdiscoveryio.svg?logo=twitter\"\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/projectdiscovery\"\u003e\u003cimg src=\"https://img.shields.io/discord/695645237418131507.svg?logo=discord\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e •\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e •\n  \u003ca href=\"https://discord.gg/projectdiscovery\"\u003eJoin Discord\u003c/a\u003e\n\n\u003c/p\u003e\n\n\u003cpre align=\"center\"\u003e\n\u003cb\u003e\ncdncheck is a tool for identifying the technology associated with dns / ip network addresses.\n\u003c/b\u003e\n\u003c/pre\u003e\n\n![image](https://user-images.githubusercontent.com/8293321/234400462-9474a3b6-4f9f-443b-a5c7-15120d6cef5f.png)\n\n## Features\n\n- **CDN**, **CLOUD** and **WAF** Detection\n- **Easy to use as library**\n- Easily extendable providers\n- IP, DNS input support\n- Text, JSONL output\n- Filters on output\n\n# Installation\n\n**cdncheck** requires **go1.19** to install successfully. Run the following command to install the latest version:\n\n```sh\ngo install -v github.com/projectdiscovery/cdncheck/cmd/cdncheck@latest\n```\n\n# Usage\n\n```sh\ncdncheck -h\n```\n\nThis will display help for the tool. Here are all the switches it supports.\n\n```yaml\nUsage:\n  ./cdncheck [flags]\n\nFlags:\nINPUT:\n   -i, -input string[]  list of ip / dns to process\n\nDETECTION:\n   -cdn    display only cdn in cli output\n   -cloud  display only cloud in cli output\n   -waf    display only waf in cli output\n\nMATCHER:\n   -mcdn, -match-cdn string[]      match host with specified cdn provider (cloudfront, fastly, google, leaseweb)\n   -mcloud, -match-cloud string[]  match host with specified cloud provider (aws, google, oracle)\n   -mwaf, -match-waf string[]      match host with specified waf provider (cloudflare, incapsula, sucuri, akamai)\n\nFILTER:\n   -fcdn, -filter-cdn string[]      filter host with specified cdn provider (cloudfront, fastly, google, leaseweb)\n   -fcloud, -filter-cloud string[]  filter host with specified cloud provider (aws, google, oracle)\n   -fwaf, -filter-waf string[]      filter host with specified waf provider (cloudflare, incapsula, sucuri, akamai)\n\nOUTPUT:\n   -resp               display technology name in cli output\n   -o, -output string  write output in plain format to file\n   -v, -verbose        display verbose output\n   -j, -jsonl          write output in json(line) format\n   -nc, -no-color      disable colors in cli output\n   -version            display version of the project\n   -silent             only display results in output\n\nCONFIG:\n   -r, -resolver string[]  list of resolvers to use (file or comma separated)\n   -e, -exclude            exclude detected ip from output\n   -retry int              maximum number of retries for dns resolution (must be at least 1) (default 2)\n\nUPDATE:\n   -up, -update                 update cdncheck to latest version\n   -duc, -disable-update-check  disable automatic cdncheck update check\n```\n\n## How to add new providers?\n\n[provider.yaml](cmd/generate-index/provider.yaml) file contains list of **CDN**, **WAF** and **Cloud** providers. The list contains **URLs**, **ASNs** and **CIDRs** which are then compiled into a final `sources_data.json` file using `generate-index` program.\n\nExample of `provider.yaml` file - \n\n```yaml\ncdn:\n  # asn contains the ASN numbers for providers\n  asn:\n    leaseweb:\n      - AS60626\n\n  # urls contains a list of URLs for CDN providers\n  urls:\n    cloudfront:\n      - https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips\n    fastly:\n      - https://api.fastly.com/public-ip-list\n\n  # cidr contains the CIDR ranges for providers\n  cidr:\n    akamai:\n      - \"23.235.32.0/20\"\n      - \"43.249.72.0/22\"\n      - \"103.244.50.0/24\"\n      - \"103.245.222.0/23\"\n      - \"103.245.224.0/24\"\n      - \"104.156.80.0/20\"\n```\n\nNew providers which can be scraped from a URL, ASN or a list of static CIDR can be added to `provider.yaml` file by following simple steps as listed below:\n\n- Fork the GitHub repository containing the `cmd/generate-index/provider.yaml` file.\n- Clone your forked repository to your local machine and navigate to the `cmd/generate-index` directory.\n- Open the `provider.yaml` file and locate the section for the type of provider you want to add (CDN, WAF, or Cloud).\n- Add the new provider's information to the appropriate section in the `provider.yaml` file.\n- Commit your changes with a descriptive commit message.\n- Push your changes to your forked repository on GitHub.\n- Open a pull request to the original repository with your changes.\n\n\n### Other providers\n\n**CNAME** and **Wappalyzer** based additions can be done in [other.go](other.go) file. Just simply add the values to the variables and you're good to go.\n\n```go\n// cdnCnameDomains contains a map of CNAME to domains to cdns\nvar cdnCnameDomains = map[string]string{\n\t\"cloudfront.net\":         \"amazon\",\n\t\"amazonaws.com\":          \"amazon\",\n    ...\n}\n\n// cdnWappalyzerTechnologies contains a map of wappalyzer technologies to cdns\nvar cdnWappalyzerTechnologies = map[string]string{\n\t\"imperva\":    \"imperva\",\n\t\"incapsula\":  \"incapsula\",\n\t...\n}\n```\n\n## cdncheck as library\n\nHelper library that checks if a given IP is running on Cloud / CDN / WAF.\n\nThe library can be used by importing `github.com/projectdiscovery/cdncheck`. here follows a basic example:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net\"\n\t\"github.com/projectdiscovery/cdncheck\"\n)\n\nfunc main() {\n\tclient := cdncheck.New()\n\tip := net.ParseIP(\"173.245.48.12\")\n\n\t// checks if an IP is contained in the cdn denylist\n\tmatched, val, err := client.CheckCDN(ip)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tif matched {\n\t\tfmt.Printf(\"%v is a %v\\n\", ip, val)\n\t} else {\n\t\tfmt.Printf(\"%v is not a CDN\\n\", ip)\n\t}\n\n\t// checks if an IP is contained in the cloud denylist\n\tmatched, val, err = client.CheckCloud(ip)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tif matched {\n\t\tfmt.Printf(\"%v is a %v\\n\", ip, val)\n\t} else {\n\t\tfmt.Printf(\"%v is not a Cloud\\n\", ip)\n\t}\n\n\t// checks if an IP is contained in the waf denylist\n\tmatched, val, err = client.CheckWAF(ip)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tif matched {\n\t\tfmt.Printf(\"%v WAF is %v\\n\", ip, val)\n\t} else {\n\t\tfmt.Printf(\"%v is not a WAF\\n\", ip)\n\t}\n}\n```\n\n--------\n\n\u003cdiv align=\"center\"\u003e\n\n**cdncheck** is made with ❤️ by the [projectdiscovery](https://projectdiscovery.io) team and distributed under [MIT License](LICENSE.md).\n\n\n\u003ca href=\"https://discord.gg/projectdiscovery\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/projectdiscovery/nuclei-burp-plugin/main/static/join-discord.png\" width=\"300\" alt=\"Join Discord\"\u003e\u003c/a\u003e\n\n\u003c/div\u003e","funding_links":[],"categories":["Go","Recon","信息搜集"],"sub_categories":["Technologies"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectdiscovery%2Fcdncheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectdiscovery%2Fcdncheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectdiscovery%2Fcdncheck/lists"}