Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PHP based Converter to create dnsmasq and unbound compatible adblock lists

License

NotificationsYou must be signed in to change notification settings

AndiDittrich/dns-adblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use the amazingStevenBlack/hosts Adblock Lists withdnsmasqd orunbound on your router

Fetch the latest List

To grab the latest list (default: adware + malware + fakenews) run theupdate.sh script

Example

$ ./update.sh--2017-02-18 09:09:57--  https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hostsResolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 1021501 (998K) [text/plain]Saving to: ‘hosts.txt’2017-02-18 09:09:58 (2.38 MB/s) - ‘hosts.txt’ saved [1021501/1021501]44006 Entries processed..5 Whitelist Hosts processed..10493 Domains total..

Configure dnsmasq

1. Copy thedist/dnsmasq.adblock.conf file to a persistent location (e.g./etc or/jffs/etc on WRT Routers)

2. Add the following directive to yourdnsmasq.conf file

conf-file=/etc/dnsmasq.adblock.conf

3. Restart dnsmasq

4. You're Ready!

Configure unbound

1. Copy thedist/unbound.adblock.conf file to a persistent location (e.g./etc or/jffs/etc on WRT Routers)

2. Add the following directive to yourunbound.conf file intoserver section

server:     ...     include: /etc/unbound.adblock.conf

3. Restart unbound

4. You're Ready!

Whitelist

Add a bunch of hostnames whichshould not getting blocked. Wildcards are supported using leading dot

Example

analytics.google.com.twitter.commydommain.tld.mywildcarddomain.tld

License

The Script is OpenSource and licensed under the Terms ofThe MIT License (X11) - your're welcome to contribute

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp