Simple-adblock: fast, lean and fully uci/luci configurable AdBlocking


#146

I'm trying to whitelist googleadservices but I'm not having any luck. How can I figure out the problem?

simple-adblock 1.6.3-5

|       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.1, r7258-5eb055306f
 -----------------------------------------------------
root@OpenWrt:~# nslookup googleadservices.com
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find googleadservices.com: NXDOMAIN
** server can't find googleadservices.com: NXDOMAIN
root@OpenWrt:~# nslookup www.googleadservices.com
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find www.googleadservices.com: NXDOMAIN
** server can't find www.googleadservices.com: NXDOMAIN
root@OpenWrt:~# /etc/init.d/simple-adblock check www.googleadservices.com
The www.googleadservices.com is not found in current blacklist.
root@OpenWrt:~# uci show simple-adblock
root@OpenWrt:~# uci show simple-adblock
simple-adblock.config=simple-adblock
simple-adblock.config.verbosity='2'
simple-adblock.config.force_dns='1'
simple-adblock.config.hosts_file='/var/dnsmasq.d/simple-adblock'
simple-adblock.config.blacklist_hosts_url='http://www.mvps.org/winhelp2002/hosts.txt' 'http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext' 'http://www.malwaredomainlist.com/hostslist/hosts.txt' 'https://adaway.org/hosts.txt' 'http://someonewhocares.org/hosts/hosts' 'https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt' 'https://zeustracker.abuse.ch/blocklist.php?download=hostfile'
simple-adblock.config.blacklist_domains_url='http://mirror1.malwaredomains.com/files/justdomains' 'https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt' 'https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt' 'https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt' 'https://ransomwaretracker.abuse.ch/downloads/RW_DOMBL.txt' 'https://ssl.bblck.me/blacklists/domain-list.txt' 'http://dshield.org/feeds/suspiciousdomains_High.txt'
simple-adblock.config.boot_delay='120'
simple-adblock.config.download_timeout='10'
simple-adblock.config.enabled='1'
simple-adblock.config.whitelist_domain='raw.githubusercontent.com' 'https://www.googleadservices.com' 'http://www.googleadservices.com' 'https://googleadservices.com' 'http://googleadservices.com' 'googleadservices.com' 'www.googleadservices.com'

#147

Please upgrade to latest from my repo.

Can you try to reboot your router?


#148

I have rebooted, same result unfortunately.


#149

grep googleadservices /var/dnsmasq.d/simple-adblock
?


#150

root@OpenWrt:~# grep googleadservices /var/dnsmasq.d/simple-adblock
local=/googleadservices.com/

How do I correct this / how does the whitelist come into play?


#151

Add the following line in /etc/config/simple-adblock

list whitelist_domain 'googleadservices.com'

You can also add the same in luci-app.


#152

It's already there. I added that whitelist via web UI but for some reason it's still being blocked.


#153

Did you restart the simple-adblock service?
If you run the nslookup/dig what does it return?


#154

hm, when rebooting the router from the UI I have had no luck. I just ran a reboot through ssh and the whitelist appears to be working now.


#155

No need to reboot the router, it is not running Windows :stuck_out_tongue:
/etc/init.d/simple-adblock restart
will do just fine ( or System-Startup in Luci)