If you have DD-WRT on your Wi-Fi router, here's how you can enable DNS-based ad blocking:
- Go to Administration > Commands, add the following and press Save Startup
wget -qO - http://zee.lv/dnsmasq-blacklist/blacklist.txt.gz | gunzip > /tmp/blacklist.txt
stopservice dnsmasq
startservice dnsmasq
- Go to Services, add the following to Additional Dnsmasq Options and press Save
addn-hosts=/tmp/blacklist.txt
- Reboot your router via Reboot Router button and enjoy less ads.
Blacklist is being updated on a weekly basis. Feel free to use blacklist-generator.sh to generate blacklist for any Dnsmasq setup.