Difference between revisions of "Bering-uClibc 5.x - User Guide - Advanced Topics - Setting Up Ad blocking with dnsmasq"
From bering-uClibc
Line 4: | Line 4: | ||
| width="20%" align="left" | [[Bering-uClibc 5.x - User Guide - Advanced Topics - Setting Up a Home Automation controller with heyu|Prev]] | | width="20%" align="left" | [[Bering-uClibc 5.x - User Guide - Advanced Topics - Setting Up a Home Automation controller with heyu|Prev]] | ||
! width="60%" align="center" | [[Bering-uClibc 5.x - User Guide]] | ! width="60%" align="center" | [[Bering-uClibc 5.x - User Guide]] | ||
− | | width="20%" align="right" | | + | | width="20%" align="right" | [[Bering-uClibc 5.x - User Guide - Advanced Topics - Modifying initrd.lrp|Next]] |
|} | |} | ||
---- | ---- | ||
Line 64: | Line 64: | ||
| width="40%" align="left" | [[Bering-uClibc 5.x - User Guide - Advanced Topics - Setting Up a Home Automation controller with heyu|Prev]] | | width="40%" align="left" | [[Bering-uClibc 5.x - User Guide - Advanced Topics - Setting Up a Home Automation controller with heyu|Prev]] | ||
| width="20%" align="center" | [[Bering-uClibc 5.x - User Guide - Advanced Topics|Up]] | | width="20%" align="center" | [[Bering-uClibc 5.x - User Guide - Advanced Topics|Up]] | ||
− | | width="40%" align="right" | | + | | width="40%" align="right" | [[Bering-uClibc 5.x - User Guide - Advanced Topics - Modifying initrd.lrp|Next]] |
|} | |} | ||
[[Category:Bering-uClibc 5.x]] | [[Category:Bering-uClibc 5.x]] | ||
[[Category:User Guide]] | [[Category:User Guide]] |
Revision as of 20:11, 16 November 2016
Setting Up Ad blocking with dnsmasq | ||
---|---|---|
Prev | Bering-uClibc 5.x - User Guide | Next |
Objectives
There is a lot of info on the net about setting dnsmasq
to block advertisements, trackings... etc. Bering-uClibcx.x comes with dnsmasq
already installed, so here is a quick guide that shows a simple setup that will filter out advertisements sites from web pages on your networked devices, how lucky can we get !
Prerequisites
* You will need Bering-uClibc 5.x or higher.
* The curl.lrp
package.
Manual setup
(treading carefully :-))
Enter the command:
curl -s -d mimetype=plaintext http://pgl.yoyo.org/as/serverlist.php?hostformat=dnsmasq-server > /root/tmpfile.list
Check the file /root/tmpfile.list
, you should have a list of servers with the following format:
server=/101com.com/ server=/101order.com/ server=/123found.com/ ... server=/zeusclicks.com/ server=/zintext.com/ server=/zmedia.com/ server=/zv1.november-lax.com/
Then:
cp /root/tmpfile.list /etc/dnsmasq.d/addblock.list
Edit /etc/dnsmasq.conf
and enter near the end:
conf-dir=/etc/dnsmasq.d
Restart dnsmasq
with:
/etc/init.d/dnsmasq restart
That's it, all the nasty ads should be gone ! (well a bunch of them !)
Hum yeah ! don't forget to save your configuration, a simple:
lrcfg and s) Save configuration
will suffice.
The usual "Enjoy" takes a whole new lot of sense now !
Prev | Up | Next |