{"id":37205428,"url":"https://github.com/suquant/ads","last_synced_at":"2026-01-14T23:40:12.109Z","repository":{"id":57569635,"uuid":"343751919","full_name":"suquant/ads","owner":"suquant","description":"CoreDNS plugin to block ads. Inspried by PiHole.","archived":false,"fork":true,"pushed_at":"2021-08-06T09:24:24.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T06:38:09.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"c-mueller/ads","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suquant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-02T11:32:29.000Z","updated_at":"2021-08-06T09:24:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/suquant/ads","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/suquant/ads","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Fads","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Fads/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Fads/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Fads/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suquant","download_url":"https://codeload.github.com/suquant/ads/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Fads/sbom","scorecard":{"id":860008,"data":{"date":"2025-08-11","repo":{"name":"github.com/suquant/ads","commit":"53ec959f1896e0db85e20fbb801e9cf792b7dd83"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"SAST","score":0,"reason":"no SAST tool detected","details":["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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"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:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Vulnerabilities","score":0,"reason":"31 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-2927-hv3p-f3vp","Warn: Project is vulnerable to: GO-2024-3130 / GHSA-hfmw-7g3m-gj6q","Warn: Project is vulnerable to: GO-2024-3134 / GHSA-h92q-fgpp-qhrq","Warn: Project is vulnerable to: GO-2024-2785 / GHSA-m9w6-wp3h-vq8g","Warn: Project is vulnerable to: GO-2025-3743 / GHSA-cvx7-x8pj-x2gw","Warn: Project is vulnerable to: GHSA-ch7v-37xg-75ph","Warn: Project is vulnerable to: GHSA-h828-v5pv-33qx","Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","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-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","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-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"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-24T00:58:15.611Z","repository_id":57569635,"created_at":"2025-08-24T00:58:15.611Z","updated_at":"2025-08-24T00:58:15.611Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-14T23:40:11.422Z","updated_at":"2026-01-14T23:40:12.098Z","avatar_url":"https://github.com/suquant.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoreDNS - ads Plugin\n\n[![Build Status](https://cloud.drone.io/api/badges/c-mueller/ads/status.svg)](https://cloud.drone.io/c-mueller/ads)\n[![codecov](https://codecov.io/gh/c-mueller/ads/branch/master/graph/badge.svg)](https://codecov.io/gh/c-mueller/ads)\n\nDNS AdBlocker plugin for CoreDNS.\n\n## IMPORTANT! - `ads` has been archived\n\nThe project is no longer maintained, due to the lack of free time. I have therefore archived it. Feel free to fork it.\n\n## Compiling\n\nFirst get the CoreDNS source code by running, after you cloned this repository into the proper path in your `GOPATH`\n```bash\ngo get github.com/coredns/coredns\n```\n\nThen navigate to the coredns directory\n```bash\ncd $(go env GOPATH)/src/github.com/coredns/coredns\n```\n\nNext update the `plugin.cfg` in the root of the coredns repository as follows\n\n```bash\nsed -i 's|loadbalance:loadbalance|ads:github.com/c-mueller/ads\\nloadbalance:loadbalance|g' plugin.cfg\n```\n\nwhile I would suggest having the `ads` plugin before the `cache` plugin because it will\ncause the changes in the blocklists to be applied instantly. However the overall performance of\nthe DNS server could degrade when having many regex rules. In that case I recommend putting the\nplugin before the `hosts` plugin:\n\n```bash\nsed -i 's|hosts:hosts|ads:github.com/c-mueller/ads\\nhosts:hosts|g' plugin.cfg\n```\n\nFinally run `make` to build CoreDNS with the `ads` plugin\n\nThe releases section also contains binaries of the latest CoreDNS with the\nads plugin. These get built automatically using drone. Once they have been triggered.\n\n### Building development binaries\n\nBuilding untagged code is complicated. The simplest way i've stumbled upon for CoreDNS is mimicing a in tree plugin using symlinks.\n\nFor this you have to create a symlink to the `ads` repository in the `plugins/` folder using a command similar to the following:\nAssuming you are in the `plugins/` directory\n\n```\nln -s ~/go/src/github.com/c-mueller/ads ads\n```\n\nMake sure to replace `~/go/src/github.com/c-mueller/ads` with the proper path to the `ads` repo.\n\nNext we have to insert the plugin into the `plugin.cfg`. here we use the following command, instead of the one above:\n```\nsed -i 's|loadbalance:loadbalance|ads:ads\\nloadbalance:loadbalance|g' plugin.cfg\n```\n\nBefore running make in the CoreDNS repo we have to make sure the `ads` repo does not contain a `go.mod` file. to do this we rename it to `go.mod.old`.\nIf you want to continue developing using Goland for example. The file should be renamed again to make sure syntax highlighting works.\n\n#### A note on `go modules`\n\nTo prevent version conflicts between CoreDNS and the ads plugin it is important to keep the\n`go.mod` file empty or if dependencies have been added that are not used by coreDNS only these should\nbe added in the `go.mod` file on master.\nFor reference the empty `go.mod` file looks like this:\n```\nmodule github.com/c-mueller/ads\n\ngo 1.12\n```\n\nThe go sum file should get deleted.\n\nBecause this strategy will make development annoying you can run `go mod tidy` to regenerate a proper `go,mod` file.\n\n## Configuring\n\nThe following shows how to use the ads plugin with default parameters, if you want to configure it further take a look at\n[This Document](docs/configuration.md).\n\n### Default settings\n\nRunning the `ads` plugin with all defaults is done by just adding the `ads` keyword to your Corefile.\n\nFor example:\n```\n.:53 {\n    ads\n    forward . 1.1.1.1\n    log\n    errors\n}\n```\n\n## License\n\nThis plugin is licensed under Apache 2 License. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuquant%2Fads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuquant%2Fads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuquant%2Fads/lists"}