{"id":13610381,"url":"https://github.com/AndiDittrich/dns-adblock","last_synced_at":"2025-04-12T22:33:36.453Z","repository":{"id":145680140,"uuid":"82375576","full_name":"AndiDittrich/dns-adblock","owner":"AndiDittrich","description":"PHP based Converter to create dnsmasq and unbound compatible adblock lists","archived":false,"fork":false,"pushed_at":"2017-08-24T08:18:30.000Z","size":983,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T02:35:12.362Z","etag":null,"topics":["adblock","adblock-lists","asuswrt-merlin","converter","dd-wrt","dns","dnsmasq","dnsmasq-adblock","php","router","script","unbound","unbound-server"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/AndiDittrich.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}},"created_at":"2017-02-18T09:20:26.000Z","updated_at":"2024-03-28T22:14:07.000Z","dependencies_parsed_at":"2024-01-14T06:56:24.482Z","dependency_job_id":null,"html_url":"https://github.com/AndiDittrich/dns-adblock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2Fdns-adblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2Fdns-adblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2Fdns-adblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndiDittrich%2Fdns-adblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndiDittrich","download_url":"https://codeload.github.com/AndiDittrich/dns-adblock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248641958,"owners_count":21138309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["adblock","adblock-lists","asuswrt-merlin","converter","dd-wrt","dns","dnsmasq","dnsmasq-adblock","php","router","script","unbound","unbound-server"],"created_at":"2024-08-01T19:01:44.175Z","updated_at":"2025-04-12T22:33:36.052Z","avatar_url":"https://github.com/AndiDittrich.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"DNSMASQD/UNBOUND Adblock Converter\n=============================\n\nUse the amazing [StevenBlack/hosts](https://github.com/StevenBlack/hosts) Adblock Lists with [dnsmasqd](http://www.thekelleys.org.uk/dnsmasq/doc.html) or [unbound](https://www.unbound.net/) on your router\n\nFetch the latest List\n------------------------------------\n\nTo grab the latest list (default: adware + malware + fakenews) run the `update.sh` script\n\n**Example**\n\n```terminal\n$ ./update.sh\n--2017-02-18 09:09:57--  https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1021501 (998K) [text/plain]\nSaving to: ‘hosts.txt’\n\n2017-02-18 09:09:58 (2.38 MB/s) - ‘hosts.txt’ saved [1021501/1021501]\n\n44006 Entries processed..\n5 Whitelist Hosts processed..\n10493 Domains total..\n```\n\nConfigure dnsmasq\n------------------------------------\n\n**1.** Copy the `dist/dnsmasq.adblock.conf` file to a persistent location (e.g. `/etc` or `/jffs/etc` on WRT Routers)\n\n**2.** Add the following directive to your **dnsmasq.conf** file\n\n```conf\nconf-file=/etc/dnsmasq.adblock.conf\n```\n\n**3.** Restart dnsmasq\n\n**4.** You're Ready!\n\nConfigure unbound\n------------------------------------\n\n**1.** Copy the `dist/unbound.adblock.conf` file to a persistent location (e.g. `/etc` or `/jffs/etc` on WRT Routers)\n\n**2.** Add the following directive to your **unbound.conf** file into `server` section\n\n```conf\nserver:\n     ...\n     include: /etc/unbound.adblock.conf\n```\n\n**3.** Restart unbound\n\n**4.** You're Ready!\n\n\nWhitelist\n------------------------------------\n\nAdd a bunch of hostnames which **should not getting blocked**. Wildcards are supported using leading dot\n\n**Example**\n\n```\nanalytics.google.com\n.twitter.com\nmydommain.tld\n.mywildcarddomain.tld\n```\n\nLicense\n------------------------------------\n\nThe Script is OpenSource and licensed under the Terms of [The MIT License (X11)](http://opensource.org/licenses/MIT) - your're welcome to contribute","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndiDittrich%2Fdns-adblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAndiDittrich%2Fdns-adblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndiDittrich%2Fdns-adblock/lists"}