All Projects → c-mueller → Ads

c-mueller / Ads

Licence: apache-2.0
CoreDNS plugin to block ads. Inspried by PiHole.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Ads

Hosts Blocklists
Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage
Stars: ✭ 1,749 (+2767.21%)
Mutual labels:  adblock, dns
Pihole Unbound
Guide to setup Unbound recursive DNS resolver with Pi-Hole. With additional configs for speed and security!! 🚀🔒
Stars: ✭ 165 (+170.49%)
Mutual labels:  adblock, dns
1hosts
DNS filter-/blocklists | safe. private. clean. browsing!
Stars: ✭ 85 (+39.34%)
Mutual labels:  adblock, dns
Wirehole
WireHole is a combination of WireGuard, Pi-hole, and Unbound in a docker-compose project with the intent of enabling users to quickly and easily create a personally managed full or split-tunnel WireGuard VPN with ad blocking capabilities thanks to Pi-hole, and DNS caching, additional privacy options, and upstream providers via Unbound.
Stars: ✭ 1,232 (+1919.67%)
Mutual labels:  adblock, dns
Spotify Adblock Linux
Spotify adblocker for Linux
Stars: ✭ 641 (+950.82%)
Mutual labels:  adblock, dns
Blahdns
A small hobby ads block dns project with doh, dot, dnscrypt support.
Stars: ✭ 228 (+273.77%)
Mutual labels:  adblock, dns
Addon Adguard Home
AdGuard Home - Home Assistant Community Add-ons
Stars: ✭ 138 (+126.23%)
Mutual labels:  adblock, dns
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (+1086.89%)
Mutual labels:  adblock, dns
Blocky
Fast and lightweight DNS proxy as ad-blocker for local network with many features
Stars: ✭ 523 (+757.38%)
Mutual labels:  adblock, dns
Cloudblock
Cloudblock automates deployment of secure ad-blocking for all of your devices - even when mobile. Step-by-step text and video guides included! Compatible clouds include AWS, Azure, Google Cloud, and Oracle Cloud. Cloudblock deploys Wireguard VPN, Pi-Hole DNS Ad-blocking, and DNS over HTTPS in a cloud provider - or locally - using Terraform and Ansible.
Stars: ✭ 257 (+321.31%)
Mutual labels:  adblock, dns
Landrush
A Vagrant plugin that provides a simple DNS server for Vagrant guests
Stars: ✭ 665 (+990.16%)
Mutual labels:  plugin, dns
Blocklist
Privacy DNS
Stars: ✭ 61 (+0%)
Mutual labels:  adblock, dns
Serverauth
An advanced authentication plugin for PocketMine-MP
Stars: ✭ 58 (-4.92%)
Mutual labels:  plugin
Quickcolor
Quickly apply fills from the global or document color palettes to selected elements - 🎨
Stars: ✭ 59 (-3.28%)
Mutual labels:  plugin
Fish Docker Compose
Fish shell completions for docker-compose
Stars: ✭ 58 (-4.92%)
Mutual labels:  plugin
Matlab Editor Plugin
Extends features for the matlab editor, Bookmarks, FileStructure, Clipboard stack
Stars: ✭ 58 (-4.92%)
Mutual labels:  plugin
Krystal
🐱‍🏍 TiddlyWiki5 plugin - Horizontal Story River
Stars: ✭ 60 (-1.64%)
Mutual labels:  plugin
Vue Ts Plugin
Typescript Language Service Plugin for Vue
Stars: ✭ 59 (-3.28%)
Mutual labels:  plugin
Inlets
Cloud Native Tunnel, now inlets PRO
Stars: ✭ 8,420 (+13703.28%)
Mutual labels:  dns
Ublock
uBlock: a fast, lightweight, and lean blocker for Chrome, Firefox, and Safari.
Stars: ✭ 8,075 (+13137.7%)
Mutual labels:  adblock

CoreDNS - ads Plugin

Build Status codecov

DNS AdBlocker plugin for CoreDNS.

Compiling

First get the CoreDNS source code by running, after you cloned this repository into the proper path in your GOPATH

go get github.com/coredns/coredns

Then navigate to the coredns directory

cd $(go env GOPATH)/src/github.com/coredns/coredns

Next update the plugin.cfg in the root of the coredns repository as follows

sed -i 's|loadbalance:loadbalance|ads:github.com/c-mueller/ads\nloadbalance:loadbalance|g' plugin.cfg

while I would suggest having the ads plugin before the cache plugin because it will cause the changes in the blocklists to be applied instantly. However the overall performance of the DNS server could degrade when having many regex rules. In that case I recommend putting the plugin before the hosts plugin:

sed -i 's|hosts:hosts|ads:github.com/c-mueller/ads\nhosts:hosts|g' plugin.cfg

Finally run make to build CoreDNS with the ads plugin

The releases section also contains binaries of the latest CoreDNS with the ads plugin. These get built automatically using drone. Once they have been triggered.

Building development binaries

Building untagged code is complicated. The simplest way i've stumbled upon for CoreDNS is mimicing a in tree plugin using symlinks.

For this you have to create a symlink to the ads repository in the plugins/ folder using a command similar to the following: Assuming you are in the plugins/ directory

ln -s ~/go/src/github.com/c-mueller/ads ads

Make sure to replace ~/go/src/github.com/c-mueller/ads with the proper path to the ads repo.

Next we have to insert the plugin into the plugin.cfg. here we use the following command, instead of the one above:

sed -i 's|loadbalance:loadbalance|ads:ads\nloadbalance:loadbalance|g' plugin.cfg

Before 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. If you want to continue developing using Goland for example. The file should be renamed again to make sure syntax highlighting works.

A note on go modules

To prevent version conflicts between CoreDNS and the ads plugin it is important to keep the go.mod file empty or if dependencies have been added that are not used by coreDNS only these should be added in the go.mod file on master. For reference the empty go.mod file looks like this:

module github.com/c-mueller/ads

go 1.12

The go sum file should get deleted.

Because this strategy will make development annoying you can run go mod tidy to regenerate a proper go,mod file.

Configuring

The following shows how to use the ads plugin with default parameters, if you want to configure it further take a look at This Document.

Default settings

Running the ads plugin with all defaults is done by just adding the ads keyword to your Corefile.

For example:

.:53 {
    ads
    forward . 1.1.1.1
    log
    errors
}

License

This plugin is licensed under Apache 2 License. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].