Adblock support thread

Hi Dave, try this ruleset (untested!):

option adb_src_rset 'BEGIN{FS=\"[|^]\"}/^@@\|\|([[:alnum:]_-]+\.)+[[:alpha:]]+\^/{print tolower(\$3)}'

Thank you so much for your quick response. I appreciate it.

I made a silly mistake lastnight by trying to put this in the blacklist along with the rest of the blacklists. However, after the fact, I realized that this was intended to be a whitelist to allow specific domains related to Ebates for proper functionality. So I copied those domains over to whitelist now and all is well.

This is the one and only thing that I used to have to disable Adblock in the router for; Ebates. So this is great because now I will no longer need to disable/pause Adblock in the router.

I'm having trouble with Adblock 3.5.5-2. Maybe I am doing something wrong but although most of the time Adblock seams to work I am unable to get blacklist to work for me.
Query domain feature from Luci doesn't show the match and it is possible to open blacklisted sites in a browser.
Any suggestions?
Here are relevant config files:

config adblock 'global'
	option adb_fetchutil 'uclient-fetch'
	option adb_trigger 'wan'
	option adb_dns 'dnscrypt-proxy'
	option adb_enabled '0'

config adblock 'extra'
	option adb_forcesrt '0'
	option adb_forcedns '0'
	option adb_maxqueue '4'
	option adb_nice '0'
	option adb_debug '0'

config source 'adguard'
	option adb_src 'https://filters.adtidy.org/windows/filters/15.txt'
	option adb_src_rset 'BEGIN{FS=\"[/|^|\r]\"}/^\|\|([[:alnum:]_-]+\.)+[[:alpha:]]+[\/\^\r]+$/{print tolower(\$3)}'
	option adb_src_desc 'combined adguard dns filter list, frequent updates, approx. 17.000 entries'
	option enabled '1'

config source 'blacklist'
	option adb_src '/etc/adblock/adblock.blacklist'
	option adb_src_rset '/^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}'
	option adb_src_desc 'static local domain blacklist, always deny these domains'
	option enabled '1'

config source 'youtube'
	option adb_src 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com'
	option adb_src_rset 'BEGIN{FS=\",\"}/^(r[0-9]+\.){1,1}([[:alnum:]_-]+\.)+[[:alpha:]]+/{sub(/\./,\"---\");print tolower(\$1)}'
	option adb_src_desc 'focus on youtube ad-related subdomains, dynamic request API, approx. 150 entries'
	option enabled '1'

config source 'yoyo'
	option adb_src 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext'
	option adb_src_rset '/^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}'
	option adb_src_desc 'focus on ad related domains, weekly updates, approx. 2.400 entries'
	option enabled '1'


and DNSCrypt-proxy config:

config global

config dnscrypt-proxy 'ns1'
	option address '127.0.0.1'
	option port '5353'
	option resolver 'adguard-dns-family-ns2'

Based on your configuration you haven't enabled adblock at all! :wink:
As long as you don't use a custom compiled build, you shouldn't use 'dnscrypt-proxy' as backend, for details check the online readme. Just enable adblock & use the default 'dnsmasq' as backend.

Good luck!

This is what I've done already. Thank you for confirmation!

Thanks for the rpely had the same problem in my PC

Hello guys im newbie to openwrt, and tried adblock and seems working good. it is posible to separate child wifi and adult wifi using 2 interface lans? and using some safesearch dns to filter adult website.

here is the concept,
lan1(child)192.168.0.1 > dhcp option 6,185.228.168.168,185.228.169.168(cleanbrowsing dns)
lan2(adult)192.168.2.1 > dhcp option 6,1.1.1.1,1.0.0.1(standard cloudflare dns)

i want to run both adblock and custom dns together but adblock is working in local dns

Hello,

with v3.5.5-2 I discovered following issue:

When I refresh my "Blocklist sources", the amount of loaded "Overall Domains" differs from time to time. It seems that Adblock is sometimes not loading all blocklist updates and loaded ones are getting removed.

For example, I have 1064 domain entries with following filter lists:

  • Blacklist (my own entries, they work all the time)
  • adaway
  • winspy (Works most times, but also loaded not every time)
  • youtube (this one seems to not be loaded many times when I refresh, sometimes it works)

This is especially an issue since I added a cron entry for adblock. Today I discovered, that only 466 of my 1064 domains were loaded.

I never had this issue before with old adblock versions and can reach all of the blocklist entries all the time on my PC for example.

Could you please check what is wrong here?

Edit 1: I use CURL for downloading the blocklist updates
Edit 2: Same issue with uclient-fetch
Edit 3: Same issue when the download Queue is increased from 4 to 16

Sounds like "normal" download errors during update, just enable "debug" in adblock and check the logs. To prevent such errors during update, use the backup function. BTW, don't use this youtube source ... it's an experimental list ... quite unstable & it doesn't help - this source will be removed in a future version.

Is blocking youtube ads bit feasible anymore? I read that few months ago it became from the same domain, but was going there might be some solution.

I don't mind an ad in the video, but multiple ads (or actually same ad repeating) in a 5 minutes video is just too much

Ad-blocker plugins for your browser (e.g. uBlock origin) do easily block all youtube ads.

'youtube premium' is your friend ...:speak_no_evil:

Ad-Blocker plugins are only solution; thanx to the https-paranoia, which (first of all ?) was caused by goggle etc. to make ad-blocking much more difficult.

It's not available where I'm, not that the cost would be justified if it was, for my light occasional use. It appears that Google is turning into a dinosaur, as if what they used to make was not enough.

Edit: to clarify, I recognize the content creators should be paid, and that payment is generated through ads. But that should be proportional to the length of the video being watched, and also should serve a variety of ads not the same thing over and over. Whoever writes the algorithms of displaying the ads should be made to watch videos with ads for a week; maybe then they will understand.

1 Like

I have problem, adblock doesn't load domain after reset.

Sat May 25 00:40:33 2019 user.info adblock-3.5.5-2[2630]: adblock instance started ::: action: start, priority: 0, pid: 2630
Sat May 25 00:40:46 2019 user.info adblock-3.5.5-2[2630]: blocklist with overall 0 domains loaded successfully (TP-Link Archer C7 v2, OpenWrt 18.06.2 r7676-cddd7b4c77)

If i use refresh button:

Sat May 25 00:42:57 2019 user.info adblock-3.5.5-2[7044]: adblock instance started ::: action: reload, priority: 0, pid: 7044
Sat May 25 00:43:30 2019 user.info adblock-3.5.5-2[7044]: blocklist with overall 36752 domains loaded successfully (TP-Link Archer C7 v2, OpenWrt 18.06.2 r7676-cddd7b4c77)

Whenever you notice reboot problems, check the trigger interface (should be your primary WAN interface) and enable adblock debug, to see much more in the logs. If the trigger interface is OK raise the 'Trigger Delay' (default '2'), e.g.:

trigger

1 Like

Hey,

I've got some issues with the whitelist for quite some time and releases now.
I'm subscribed to several lists and one blacklists e.g. google or amazon stuff so I wanted to whitelist specific domains. I still get NXDOMAIN even though they're whitelisted. Is it possible that the whitelist has just some kind of lower priority/order when parsing?

root@skuld:~# /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 3.5.5-2
  + overall_domains : 66121 (normal mode)
  + fetch_utility   : /usr/bin/wget (built-in)
  + dns_backend     : dnsmasq (/tmp)
  + last_rundate    : 05.06.2019 21:26:57
  + system_release  : Linksys WRT1900ACS, OpenWrt 18.06.2 r7676-cddd7b4c77
root@skuld:~# cat /etc/adblock/adblock.whitelist

bit.ly
streamate.com
www.streamate.com
googleusercontent.com
s3.amazonaws.com
amazon-adsystem.com
aax-eu.amazon-adsystem.com
root@skuld:~# /etc/init.d/adblock query aax-eu.amazon-adsystem.com
::: results for domain 'aax-eu.amazon-adsystem.com'
  - no match
::: results for domain 'amazon-adsystem.com'
  + amazon-adsystem.com
root@skuld:~# dig aax-eu.amazon-adsystem.com A

; <<>> DiG 9.11.2-P1 <<>> aax-eu.amazon-adsystem.com A
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9593
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;aax-eu.amazon-adsystem.com.    IN      A

;; Query time: 13 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun 05 21:47:15 CEST 2019
;; MSG SIZE  rcvd: 55

An external server:

root@thor:~# dig aax-eu.amazon-adsystem.com A

; <<>> DiG 9.12.3-P4 <<>> aax-eu.amazon-adsystem.com A
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26834
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: b930210be8343bb4405103495cf81c5f54790ea9aa1dd1ac (good)
;; QUESTION SECTION:
;aax-eu.amazon-adsystem.com.    IN      A

;; ANSWER SECTION:
aax-eu.amazon-adsystem.com. 60  IN      A       52.94.218.7

;; Query time: 117 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun 05 21:47:43 CEST 2019
;; MSG SIZE  rcvd: 99
1 Like

Hi,

stable branch didn't change for a while (> 7 months). Did you refresh your blocklists after adding your whitelist entries? If so, please provide the reload log with enabled "debug" (logread -e "adblock"), also provide the output of head /tmp/adb_list.overall.

Thanks!

Hey,

thanks! Refreshing indeed seemed to help:
Before:

root@skuld:~# head /tmp/adb_list.overall
server=/s3.amazonaws.com/#
server=/googleusercontent.com/#
server=/streamate.com/#
server=/bit.ly/#
server=/js.cdn.ac/
server=/absop.academy/
server=/dxracers.accountant/
server=/hostingcloud.accountant/
server=/serasaexperian.accountant/
server=/vusert.accountant/

After:

root@skuld:~# head /tmp/adb_list.overall
server=/amazon-adsystem.com/#
server=/s3.amazonaws.com/#
server=/googleusercontent.com/#
server=/streamate.com/#
server=/bit.ly/#
server=/js.cdn.ac/
server=/absop.academy/
server=/dxracers.accountant/
server=/hostingcloud.accountant/
server=/serasaexperian.accountant/

Is it always required after changing black/whitelist or anything else? Could you add a warning/note to the affected sections, to point that out?

Right now "yes", blacklist/whitelist are ordinary "list sources" and you need to start the process so that they've to get incorporated.