Adblock support thread

I have made the unfortunate thing and updated Adblock from luci
I think the older version was 3.8 but I am not sure.

Now the Adblock itself the plugin for the hidden app is working and blocking ads but the luci app is not working. I get an error (TypeError result[0].trim is not a function)
that appears only in the first tab and stuck on loading picture attached
I am using the firmware version of 19 first release candidate. Now I do not want to upgrade openwrt to the latest version because I am happy with my current release and its functioning well because the other versions when I update it messed up the Wi-Fi driver and somethings were not fully functional for me so I do not want to update to the latest version I just wanted the Adblock (luci app) to go back to the original version where it was functional
Thank you

I have tried updating luci apps, cleared cache, rebooting multiple times but nothing seems to work

Please can you provide the dnscrypt-proxy.toml configuration
You must declare the specific route

/etc/dnscrypt-proxy2/dnscrypt-proxy.toml

blacklist_file = 'adb_list.overall'

Thank you Sir!!!
I had a suspicion it had to do with the Adblock overall file, but got confused between how 3.8 worked versus 4.0.5 using dnsmasq as the backend. Working Again!

That does however lead to another question.

Can I safely assume I can cocatenate the dnscrypt-proxy2 blacklist.txt file to the adblock.blacklist file?

Well the answer is a resounding NO

Please note: add only one domain per line. Comments introduced with '#' are allowed - ip addresses, wildcards and regex are not.

So, I’ll be going back to using dnsmasq as a backend resolver as I seem to get better blocking performance when I can use dnscrypt-proxy

blacklist.txt

pattern based blocking file in conjunction with

adb_list.overall.

You can’t use both together when using dnscrypt-proxy as the backend unfortunately.

Seems I can also forego using Adblock’s blacklist by adding the domains I explicitly block by adding them to the dnscrypt-proxy blacklist for just a little lower management effort.

Can anybody help?
Cheers

That appears to be a js error. Did you actually Update Adblock or remove/install?

Adblock V4 is a full rewrite from V3.

Might want to try:

  1. Rename your Adblock config by appending .bak to it
  2. Remove Adblock and Luci app
  3. Install the V4 Adblock packages.

Check out the Adblock 4 PR thread to get a leg up on the changes between 3 and 4.

Thank you
I updated directly when I had that error
Then removed it and removed its luci app
Then installed v4 packaged and installed it again.
Still the same error
Rebooted the same error
I renamed the config as you suggested but still the same

What does

opkg list-installed | grep adblock return?

Should be:

Adblock - 4.0.5-1
luci-app-adblock - git-20.144.63033-62ed4e6e
root@OpenWrt:~# opkg list-installed | grep adblock
adblock - 4.0.4-4
luci-app-adblock - git-20.105.64099-eeba108-1

Any pre-release versions are not supported. Adblock is using core js functions (i.e. read_direct) which has been arrived in later 19.07.x revisions.

2 Likes

Thanks!

Another nugget for my Personal KB.

1 Like

Thanks I was too lazy to upgrade again but it turned out that the wifi drivers have been updated and worked flawlessly with simple sysupgrade
and the new adblock is way better. thanks for your efforts and please keep adding new features!

1 Like

I have been getting consistent wget "unable to resolve" failures on a couple of sites when the update runs, but when I issue the wget manually it works properly.

Here is one of them:

Tue Jun 30 23:00:09 2020 user.info adblock-4.0.6[26284]: download of 'shallalist' failed, url: https://www.shallalist.de/Downloads/shallalist.tar.gz, rule: /^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}, categories: adv costtraps spyware tracker warez, rc: 4, log: --2020-06-30 23:00:04--  https://www.shallalist.de/Downloads/shallalist.tar.gz Resolving www.shallalist.de... failed: Try again. wget: unable to resolve host address 'www.shallalist.de'

It has been this way for the last 10 days, but it has done it previously, but not so consistently.

A couple of the other sites have this message occasionally.

adblock 4.0.6-1
wget 1.20.3-4

the dns messages for adblock look like this:

Tue Jun 30 23:00:00 2020 user.debug adblock-4.0.6[26284]: f_dns    ::: dns: dnsmasq, dns_dir: /tmp/dnsmasq.d, dns_file: adb_list.overall, dns_user: dnsmasq, dns_inotify: 0, dns_instance: 0, backup: 1, backup_dir: /tmp, jail_dir: /tmp
.
.
.
Tue Jun 30 23:00:26 2020 user.debug adblock-4.0.6[26284]: f_dnsup  ::: lookup_util: /usr/bin/nslookup, lookup_domain: example.com, restart_rc: 0, dns_timeout: 20, dns_cnt: 1, in_rc: 0, out_rc: 0

I thought it might be a timing issue and have changed the cron job's start times to no avail.
When I do a restart command manually, it is somewhat better, but still has one or two sites failing to resolve. [The backup feature is great and would be fine except in these cases with consistent failures.]

Any ideas on what could be causing this behavior?

Nothing specific ... just a few hints

  • you doesn't use the default source file of the package (in 4.0.6 shallalist points to "http://" and you're using a slightly older regex) - anyway the reason for that error is a failed dns resolv attempt.

  • Check the "Download Queue" parameter in adblock, default is 4 - you can reduce this to "1" for testing, which means no parallel downloads/processing

1 Like

Been enjoying Adblock for a while now.

At the moment, I use 1.1.1.1 and etc, for my DNS. I noticed a while ago Cloudflare has a couple of sets of addresses (1.1.1.2 and 1.1.1.3 and etc, info here ) that have "malware blocking" and blocking including adult/porn stuff.

Anyone figure out how that overlaps with the blocking lists, or if that is published info? Would be nice if one could drop a lot of overlapping items/lists on the router side if you use their malware filtered servers. Cloudflare doesn't seem to make it easy to find their "free" stuff lately, it took me a while to dig up that link, even when I knew it was there...

1 Like

I use dnscrypt on my network, and it works well. I'd like to also use adblock for blocking ads, malware, and adult content. I suspect there's something wrong in my configuration though.

When I enable adblock, we no longer get notifications on our phones through Signal Private Messenger. I added a long list of Signal related domains to the whitelist, in case my block list was somehow blocking something related to the messenger service, but the problem persisted. I then selected one of the very small "malware only" block lists, and disabled the SafeSearch feature, but the problem still persisted, so I don't think its simply a blocked domain. I suspect there's actually a problem with my configuration.

Has anyone else had this problem? I'm not sure if it's relevant, but Signal messengers uses Google Cloud Push (GCM) for pushing notifications to devices.

image

image

Hate to bump my own comment, but does anyone know if Cloudflare publishes what they block with their "malware blocking" on 1.1.1.2 or .3? Or, is there a way to test what they block and create such a list, or is the whole idea of finding out impossible?

Impossible as it's not made public, but you can use Cloudflare Gateway for more granular control of what categories to block.

Yeah, was afraid of that. Thought there might be hope it was published, and just buried on the site someplace...

I guess the only way to get it would be to create an "engine" of some sort to try all the blocklist sites against getting a return thru 1.1.1.2/3, and generate a list... More of a pain than I'm interested in at the moment.

Hi, I installed adblock on my Xiaomi Mi R3G router with OpenWRT 19.07.3. It successfully downloads the blocklists, like

Sun Jul  5 23:30:25 2020 user.debug adblock-4.0.6[5308]: f_list   ::: name: youtube, mode: download, cnt: 22332, in_rc: 0, out_rc: 0
Sun Jul  5 23:30:25 2020 user.debug adblock-4.0.6[5308]: f_list   ::: name: youtube, mode: backup, cnt: 22332, in_rc: 0, out_rc: 0

But the blocking ads does not work: youtube still shows ads and when I open detectadblock from my smartphone it says that I'm allowing ads.
Apparently DNS is not working properly. I tried to use different dns backends but unable to install any of them (aside from dnsmasq) with opkg. What should I do?

My config is

root@OpenWrt:~# /etc/init.d/adblock status_service
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 4.0.6
  + blocked_domains : 601295
  + active_sources  : ...[[omitted]]... youtube yoyo 
  + dns_backend     : dnsmasq, /tmp/dnsmasq.d
  + run_utils       : /usr/bin/curl, /usr/bin/awk
  + run_ifaces      : trigger: -, report: br-lan
  + run_directories : base: /tmp, backup: /tmp, report: /tmp, jail: /tmp
  + run_flags       : backup: 1, reset: 0, flush: 0, force: 1, search: 0, report: 1, mail: 0, jail: 0
  + last_run        : reload, 10m 28s, 253/151/135, 05.07.2020 23:30:38
  + system          : Xiaomi Mi Router 3G, OpenWrt 19.07.3 r11063-85e04e9f46