Adblock support thread

did it, but everytime the router restarts, adblock restarts too but doesnt work.
I'm not sure about restart, main tab said "enabled", but log tab has no evidence of it (while, instead, when I restart it manually, I see it in the log).
Maybe it is due the custom build I'm using...

@dibdot Hey thanks for this package, it's simple and nice. Do you intend to have a "Whitelist Sources" as a feature? For example including anudeepND Whitelist as the source. Though doing it manually isn't hard. Plus I don't know any other sources either. Well just a thought :grin:

Hello @dibdot .
Just installed luci-app-adblock on my router and using Firefox I can't access adblock UI page.
I get the following error:

TypeError: result[0].trim is not a function

Switching browser to Edge (Chromium) seems to solve the issue.

Browser: Firefox 85.0.1
OpenWrt: 19.07.06
luci: LuCI openwrt-19.07 branch (git-21.036.67598-2936a19)
adblock: 4.0.7-4
luci-app-adblock: git-21.036.67598-2936a19-1

UPDATE: after some time playing around with adblock settings in Edge, the error is gone and now I can use Firefox to open adblock settings... Very strange...

Just another client side firefox caching issue, best is to reset all your local browser caches after an update (or change your browser settings to automatically reset the cache whenever you close Firefox).

1 Like

Hi. I had adblock 4.0.7 working perfectly for months, but today seems that is not working just after a router reboot ¿?. I'm using Openwrt 19.07. In luci adblock section I get no information at all, just the spinning circle close to "Status/Version". I tried enabling/disabling the service but still the same, With the service enabled and also verbose output, this is what I get:

root@OpenWrt:/tmp# logread -e adblock
Feb 10 15:04:30 OpenWrt adblock-4.0.7[9483]: adblock instance started ::: action: start, priority: 0, pid: 9483
Feb 10 16:39:31 OpenWrt uhttpd[4543]: luci: accepted login on /admin/services/adblock for root from 192.168.1.2
Feb 10 16:41:24 OpenWrt adblock-4.0.7[14738]: 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
Feb 10 16:41:24 OpenWrt adblock-4.0.7[14738]: f_fetch  ::: fetch_util: /usr/bin/curl, fetch_parm: --connect-timeout 20 --silent --show-error --location -o
Feb 10 16:41:24 OpenWrt adblock-4.0.7[14738]: f_uci    ::: config: dhcp, change: 
Feb 10 16:41:24 OpenWrt adblock-4.0.7[14738]: f_uci    ::: config: firewall, change: 
Feb 10 16:41:24 OpenWrt adblock-4.0.7[14738]: f_temp   ::: tmp_base: /tmp, tmp_dir: /tmp/tmp.JlEkFf, cores: 2, sort_options: --temporary-directory=/tmp/tmp.JlEkFf --compress-program=gzip --batch-size=32 --parallel=2, pid_file: /var/run/adblock.pid

root@OpenWrt:/tmp# ps | grep adblock
16687 root      1360 S    /bin/sh /usr/bin/adblock.sh
19064 root      1108 S    grep adblock

Any help would be appreciated. Thanks

Ok, reset to factory defaults and restored and old one config and working now.

Which of these Openwrt Adblock sources should I use to eliminate YouTube in-video ads on a mobile device?

These are the blocking sources I see. Bold ones, I've already tried and they don't block YouTube in-video ads.

  • adaway (S, mobile)
  • adguard (L, general)
  • android_tracking (S, tracking)
  • andryou (L, compilation)
  • anti_ad (L, compilation)
  • anudeep (M, compilation)
  • bitcoin (S, mining)
  • disconnect (S, general)
  • energized_blugo (XL, compilation)
  • energized_blu (XL, compilation)
  • energized_porn (XXL, compilation+porn)
  • energized_ultimate (XXL, compilation)
  • energized_unified (XXL, compilation)
  • firetv_tracking (S, tracking)
  • gaming (S, gaming)
  • malwaredomains (M, malware)
  • malwarelist (S, malware)
  • notracking (XL, tracking)
  • oisd_nl (XXL, general)
  • openphish (S, phishing)
  • phishing_army (S, phishing)
  • reg_cn (M, reg_china)
  • reg_cz (M, reg_czech+slovak)
  • reg_de (M, reg_germany)
  • reg_es (M, reg_spain)
  • reg_fi (S, reg_finland)
  • reg_fr (S, reg_france)
  • reg_id (M, reg_indonesia)
  • reg_it (M, reg_italy)
  • reg_kr (S, reg_korea)
  • reg_nl (M, reg_netherlands)
  • reg_pl1 (S, reg_poland)
  • reg_pl2 (S, reg_poland)
  • reg_ro (M, reg_romania)
  • reg_ru (M, reg_russia)
  • reg_vn (S, reg_vietnam)
  • shallalist (L, general)
  • shallalist_porn (XXL, general+porn)
  • smarttv_tracking (S, tracking)
  • spam404 (S, general)
  • stevenblack (L, compilation)
  • stevenblack_porn (L, compilation)
  • stopforumspam (S, spam)
  • utcapitole (L, general)
  • utcapitole_porn (XXL, general+porn)
  • wally3k (S, compilation)
  • whocares (M, general)
  • winhelp (S, general)
  • winspy (S, win_telemetry)
  • youtube (M, youtube)
  • yoyo (S, general)

You can't do that with the adblock package, youtube is serving ads and contents from the same servers, rendering DNS based blocking rather ineffective.

3 Likes

So, how does browser-based ad blocking work? For example, ublock origin seems to block all YouTube ads. How?

Browser-based adblocking has access to the complete, decrypted data from the server. Which includes all the URLs referenced, even when on https:// . So, having some knowledge about the youtube-urls presenting in-movie ads, hosted by youtube themselves, allows blocking exactly these URLs, which is impossible to do in DNS-blocking. Because it can only block the complete domain/server.
Of course, DNS-based blocking can block complete youtube.com, but that is probably not, what you want.
Which is the main reason, your good friend goggle emphasizes usage of https.
And some more, new "security features for the benefit of the user".

2 Likes

Hello, can i use this project to bock youtube ads with Adblock OpenWRT?

The YouTube ads blocklist project Publish

This is an open project to maintain a list of domain names that serve YouTube ads. The original project only produced a Pi-hole blocklist, but this new version automatically generates multiple list formats.

This blocklist doesn't work, input in "Edit Blacklist":

https://ewpratten.retrylife.ca/youtube_ad_blocklist/domains.txt

Or, where can i get this " youtube (M, youtube)" Blocklist Source?

Firmware Version
OpenWrt 19.07.6 r11278-8055e38794 / LuCI openwrt-19.07 branch git-21.018.57536-6ba9740
Adblock
Status / Version - enabled / 4.0.7

Thank you for your input.

Edit: uBlock Origin Version 1.33.2 blocks the ads without problems.

1 Like

Nowhere, I've removed this list a while ago cause it doesn't work and blocks potentially legit content. Use browser plugins or pay the content provider (youtube premium).

1 Like

just found out adb_list.jail and played with it, I found:

  1. the file is something like:
local=/yahoo.com/#
address=/#/

I assume it should be below instead?

server=/yahoo.com/#
server=/#/

because servers-file only supports "server", or does not use servers-list at all,just put the local/address current format into /tmp/dnsmasq.d

  1. when I enable adb_list.jail, it really should disable adb_list.overall, as they're mutually exclusive? at least it could be put into /tmp/dnsmasq.d and takes priority over adb_list.overall, since adb_list.jail will be checked before adb_list.overall, simply put adb_list.jail in /tmp/dnsmasd.d shall work

so far on openwrt master this does not work for me until I copy adb_list.jail to /tmp/dnsmasq.d

Nope, the jail list is meant as an addon (for a separate dns instance). You can use this restrictive blocklist manually e.g. for guest wifi or kidsafe configurations.

1 Like

I didn't read the whole thread, but looked for the problem downloading apps from playstore.
I'm running 19.07.5 with adblocker 4.0.7-4. On my system, with installed reg_de, I had to whitelist the following domains to get downloads from playstore running:

gvt1.com
gvt2.com
android.clients.google.com
clients1.google.com
clients2.google.com
clients3.google.com
clients4.google.com
clients5.google.com
clients6.google.com
play.googleapis.com

Hope it helps :slight_smile:

Adblock not blocking domains even on the enabled list.

I'm using 19.07.7 firmware and adblock 4.0.7. But after reviewing the kids usage, I found out that some of the supposed to be blocked domains are getting through.

Below is the log of adblock

Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: 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: /mnt/sda1/openwrt/adblock, jail_dir: /tmp
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_fetch  ::: fetch_util: /bin/uclient-fetch, fetch_parm: --timeout=20 -O
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_bgserv ::: status: stop, bg_pid: -, dns_filereset: 0, ubus_service: /etc/adblock/adblock.monitor
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_report ::: action: reload, report: 0, search: +, count: 50, process: false, print: false, dump_util: , repdir: /tmp, repiface: br-lan, replisten: 53, repchunksize: 1, repchunkcnt: 5, bg_pid:
Mon Feb 22 21:12:20 2021 user.info adblock-4.0.7[19606]: adblock instance started ::: action: reload, priority: 0, pid: 19606
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_jsnup  ::: status: running, cnt: 87682, mail: 0, mail_service: /etc/adblock/adblock.mail, mail_cnt: 0, mail_pid: -
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_uci    ::: config: dhcp, change:
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_uci    ::: config: firewall, change:
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_temp   ::: tmp_base: /tmp, tmp_dir: /tmp/tmp.EDFmEK, cores: 4, sort_options: --temporary-directory=/tmp/tmp.EDFmEK --compress-program=gzip --batch-size=32 --parallel=4, pid_file: /var/run/adblock.pid
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_main   ::: memory: 513/409/386, max_queue: 4, safe_search: 0, force_dns: 1, awk: /usr/bin/awk
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: blacklist, mode: blacklist, cnt: 0, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:20 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: whitelist, mode: whitelist, cnt: 0, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:23 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: adaway, mode: download, cnt: 9167, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:23 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: adaway, mode: backup, cnt: 9167, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:25 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: disconnect, mode: download, cnt: 2735, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:25 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: disconnect, mode: backup, cnt: 2735, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:33 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: adguard, mode: download, cnt: 38335, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:33 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: adguard, mode: backup, cnt: 38335, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:37 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: stevenblack_porn, mode: download, cnt: 96777, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:37 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: stevenblack_porn, mode: backup, cnt: 96777, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:40 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: yoyo, mode: download, cnt: 3562, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:40 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: yoyo, mode: backup, cnt: 3562, in_rc: 0, out_rc: 0
Mon Feb 22 21:12:41 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: -, mode: merge, cnt: 131611, in_rc: 4, out_rc: 0
Mon Feb 22 21:12:48 2021 user.debug adblock-4.0.7[19606]: f_tld    ::: source: /tmp/tmp.EDFmEK/adb_list.overall, cnt: 131611, cnt_tld: 87682
Mon Feb 22 21:12:52 2021 user.debug adblock-4.0.7[19606]: f_list   ::: name: -, mode: final, cnt: 87682, in_rc: 4, out_rc: 0
Mon Feb 22 21:12:54 2021 user.debug adblock-4.0.7[19606]: 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
Mon Feb 22 21:12:54 2021 user.debug adblock-4.0.7[19606]: f_jsnup  ::: status: enabled, cnt: 87682, mail: 0, mail_service: /etc/adblock/adblock.mail, mail_cnt: 0, mail_pid: -
Mon Feb 22 21:12:54 2021 user.info adblock-4.0.7[19606]: blocklist with overall 87682 blocked domains loaded successfully (Newifi-D2, OpenWrt 19.07.7 r11306-c4a6851c72)
Mon Feb 22 21:12:54 2021 user.debug adblock-4.0.7[19606]: f_rmtemp ::: tmp_dir: /tmp/tmp.EDFmEK, src_file: /tmp/adb_sources.json, pid_file: /var/run/adblock.pid

Below are screenshots of the issue

According to adblock, it's blocklisted

But doing dig or nslookup still returns an IP instead of 'NXDOMAIN'

Don't get me wrong, but Adblock does work most of the time.. like for this example..

image

I can't just understand why some are getting thru :pensive:

Sorry, not reproducible for me, with your selection "hentaihaven.org" will be blocked with NXDOMAIN. Please check that the domain is really in your list, e.g. cat /tmp/dnsmasq.d/adb_list.overall | grep "hentaihaven"

it's there

which makes me scratch my head

i'm using this for the stevenblack_porn: https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts

this is really weird.. ahahaha