Hello,
Is it possible to whitelist Google sponsored ads?
![]()
Hello,
Is it possible to whitelist Google sponsored ads?
![]()
What do you mean google sponsored ads? Or are you saying ads from google?
If the latter, google ads, then yes, you just need to add the domains you want in the Allowlist.
Google ads are usually from "www.googleadservices.com".
Hi, I mean those ads on top of a Google search, but maybe I'm translating poorly.
Maybe in English they would show up as promoted...
Let me check.
[Edit]
This:
But perhaps it's allowed by default...
![]()
Hello, i like to update Adblocks feeds with 0 */1 * * * /etc/init.d/adblock reload, but this did not work. For which directory is the file for this?
Thanks
What do you see in the log?
logread -e adblock
If the feed hasnβt been updated at the source, it wonβt do anything.
Thank you for your fast answer. I see in the log, blocklist are successfully loaded. I don't know if i have use the correct file of the command in the command line. I have written it in the config of adblock under the last line.
Oh, the schedule gets entered (in LuCI) under System -> Scheduled Tasks.
Or via SSH:
cat >> /etc/crontabs/root <<EOF
0 */1 * * * /etc/init.d/adblock reload
EOF
echo 'root' >> /etc/crontabs/cron.update
I have paste it into Scheduled Tasks, but the list will not be updated, but i am not sure. Is "cron.err" in logread an error?
No, itβs not an error, just an oddity of the cron logging level. Mine works fine and logs like this:
Tue Nov 11 04:37:00 2025 cron.err crond[2429]: USER root pid 31227 cmd /etc/init.d/adblock reload
After a couple of month there is a new adblock release in master:
Have fun!
Dirk
When adblock automaticlly refresh the lists, and no internetconnection is avalable, delete the command the existing lists?
Which command? On an usual adblock start or reload all feeds/feed backups are restored e.g.
Mon Nov 17 21:22:30 2025 user.info adblock-4.4.3-r1[8558]: adblock instance started ::: action: reload, priority: 0, pid: 8558
Mon Nov 17 21:22:30 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: iplist, mode: iplist, cnt: 0, in_rc: 0, out_rc: 0
Mon Nov 17 21:22:30 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: blocklist, mode: blocklist, cnt: 0, in_rc: 0, out_rc: 0
Mon Nov 17 21:22:30 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: allowlist, mode: allowlist, cnt: 0, in_rc: 0, out_rc: 0
Mon Nov 17 21:22:35 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: 1hosts, suffix: Lite/domains.wildcards, http_code: -, feed/etag: 1/1, rc: 4
Mon Nov 17 21:22:35 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: adguard, suffix: -, http_code: -, feed/etag: 1/1, rc: 4
Mon Nov 17 21:22:35 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: adguard_tracking, suffix: -, http_code: -, feed/etag: 1/1, rc: 4
Mon Nov 17 21:22:35 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: certpl, suffix: -, http_code: -, feed/etag: 1/1, rc: 4
Mon Nov 17 21:22:35 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: doh_blocklist, suffix: -, http_code: -, feed/etag: 1/1, rc: 4
Mon Nov 17 21:22:40 2025 user.info adblock-4.4.3-r1[8558]: download of 'adguard' failed, url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt, rule: BEGIN{FS="[|^]"}/^\|\|([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+\^(\$third-party)?$/{print tolower($3)}, categories: -, rc: 6
Mon Nov 17 21:22:40 2025 user.info adblock-4.4.3-r1[8558]: download of '1hosts' failed, url: https://raw.githubusercontent.com/badmojr/1Hosts/master/, rule: /^(([[:alnum:]_-]{1,63}\.)*[[:alnum:]-]{2,63}([[:space:]]|$))/{print tolower($1)}, categories: Lite/domains.wildcards , rc: 6
Mon Nov 17 21:22:40 2025 user.info adblock-4.4.3-r1[8558]: download of 'adguard_tracking' failed, url: https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_trackers_justdomains.txt, rule: /^(([[:alnum:]_-]{1,63}\.)*[[:alnum:]-]{2,63}([[:space:]]|$))/{print tolower($1)}, categ
Mon Nov 17 21:22:40 2025 user.info adblock-4.4.3-r1[8558]: download of 'certpl' failed, url: https://hole.cert.pl/domains/v2/domains.txt, rule: /^(([[:alnum:]_-]{1,63}\.)*[[:alnum:]-]{2,63}([[:space:]]|$))/{print tolower($1)}, categories: -, rc: 6
Mon Nov 17 21:22:40 2025 user.info adblock-4.4.3-r1[8558]: download of 'doh_blocklist' failed, url: https://raw.githubusercontent.com/dibdot/DoH-IP-blocklists/master/doh-domains_overall.txt, rule: /^(([[:alnum:]_-]{1,63}\.)*[[:alnum:]-]{2,63}([[:space:]]|$))/{print tolower($1)}, categories: -, rc: 6
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: doh_blocklist, mode: restore, cnt: 1899, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: doh_blocklist, mode: prepare, cnt: 1899, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: adguard_tracking, mode: restore, cnt: 89796, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: 1hosts, mode: restore, cnt: 92499, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: adguard, mode: restore, cnt: 144524, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: adguard_tracking, mode: prepare, cnt: 89796, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: certpl, mode: restore, cnt: 152914, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: 1hosts, mode: prepare, cnt: 92499, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: adguard, mode: prepare, cnt: 144524, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:40 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: certpl, mode: prepare, cnt: 152914, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:45 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: hagezi, suffix: wildcard/spam-tlds-onlydomains.txt, http_code: -, feed/etag: 3/3, rc: 4
Mon Nov 17 21:22:45 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: stevenblack, suffix: hosts, http_code: -, feed/etag: 1/1, rc: 4
Mon Nov 17 21:22:45 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: winspy, suffix: -, http_code: -, feed/etag: 1/1, rc: 4
Mon Nov 17 21:22:50 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: hagezi, suffix: wildcard/pro-onlydomains.txt, http_code: -, feed/etag: 3/3, rc: 4
Mon Nov 17 21:22:50 2025 user.info adblock-4.4.3-r1[8558]: download of 'stevenblack' failed, url: https://raw.githubusercontent.com/StevenBlack/hosts/master/, rule: /^0\.0\.0\.0[[:space:]]+([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}, categories: hosts , rc: 6
Mon Nov 17 21:22:50 2025 user.info adblock-4.4.3-r1[8558]: download of 'winspy' failed, url: https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt, rule: /^0\.0\.0\.0[[:space:]]+([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}, categories: -, rc: 6
Mon Nov 17 21:22:50 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: winspy, mode: restore, cnt: 347, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:50 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: winspy, mode: prepare, cnt: 347, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:50 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: stevenblack, mode: restore, cnt: 110351, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:50 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: stevenblack, mode: prepare, cnt: 110351, in_rc: 6, out_rc: 0
Mon Nov 17 21:22:55 2025 user.debug adblock-4.4.3-r1[8558]: f_etag ::: feed: hagezi, suffix: wildcard/tif-onlydomains.txt, http_code: -, feed/etag: 3/3, rc: 4
Mon Nov 17 21:23:10 2025 user.info adblock-4.4.3-r1[8558]: download of 'hagezi' failed, url: https://raw.githubusercontent.com/hagezi/dns-blocklists/main/, rule: /^(([[:alnum:]_-]{1,63}\.)*[[:alnum:]-]{2,63}([[:space:]]|$))/{print tolower($1)}, categories: wildcard/spam-tlds-onlydomains.txt wildcard/pro-onlydomain
Mon Nov 17 21:23:11 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: hagezi, mode: restore, cnt: 677523, in_rc: 6, out_rc: 0
Mon Nov 17 21:23:11 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: hagezi, mode: prepare, cnt: 677523, in_rc: 6, out_rc: 0
Mon Nov 17 21:23:12 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: -, mode: merge, cnt: 956356, in_rc: 4, out_rc: 0
Mon Nov 17 21:23:15 2025 user.debug adblock-4.4.3-r1[8558]: f_tld ::: name: -, cnt: 956356, cnt_tld: 638228, cnt_rem: -
Mon Nov 17 21:23:17 2025 user.debug adblock-4.4.3-r1[8558]: f_list ::: name: -, mode: final, cnt: 638225, in_rc: 4, out_rc: 0
Mon Nov 17 21:23:29 2025 user.debug adblock-4.4.3-r1[8558]: f_dnsup ::: dns: unbound, cache_cmd: /usr/sbin/unbound-control, lookup_domain: localhost, restart_rc: 0, dns_flush: 0, dns_timeout: 20, dns_pid: 9324, dns_cnt: 0, rc: 0
Mon Nov 17 21:23:34 2025 user.info adblock-4.4.3-r1[9389]: mail sent to 'xxx@xxx.xxx' with rc '75'
Mon Nov 17 21:23:34 2025 user.info adblock-4.4.3-r1[8558]: blocklist with overall 638 225 blocked domains loaded successfully (Bananapi BPI-R3, mediatek/filogic, OpenWrt SNAPSHOT r31857-501f4edb04 )
New week, new adblock release!
This will be the baseline for 25.x ... whenever it comes.
In LuCI there are at least two small visual changes:
On the overview/start page, you can see the version number of the Adblock frontend and backend at a glance. If there are significant discrepancies, you should check the software updates again to see if an update is available for any of the software components.
The Log View in adblock no longer calls logread directly, it uses rpc/ubus object calls instead (with proper json output).
The date and time information is now displayed in a much more space-saving way so that more log content can be seen at a glance. I would also like to point out that anyone using the new hagezi βabusetldsβ category should also use tld compression... it only takes a few seconds, but saves over 200k unnecessary domains in the final block list.
Have fun!
Dirk
Hi @dibdot
Not sure if this is a bug introduced in the latest version 4.4.4-r1. Adding some "ru" domains into the blocklist doesn't do anything after a reload or even a restart.
This is after adding the domain appmetrica.yandex.ru and doing a reload or restart.
# /etc/init.d/adblock query appmetrica.yandex.ru
:::
::: domain 'appmetrica.yandex.ru' in active blocklist
:::
- no match
:::
::: domain 'yandex.ru' in active blocklist
:::
- no match
:::
::: domain 'ru' in active blocklist
:::
- no match
:::
::: domain 'appmetrica.yandex.ru' in backups and in local block-/allowlist
:::
+ adblock.blocklist appmetrica.yandex.ru
I added the following:
appmetrica.yandex.ru
adfstat.yandex.ru
metrika.yandex.ru
adfox.yandex.ru
I have other items in my blocklist and all works, only the above doesn't work.
Thanks! Most probably a regex bug - I'll take a look later this evening.
While youβre in there, there is also an extra colon before the cat command:
Causes an error in query when tld compression is disabled.
:::
::: domain 'g.doubleclick.net' in backups and in local block-/allowlist
:::
/usr/bin/adblock.sh: line 1025: :/bin/cat: not found
- no match
@dave14305 @AcidSlide Both issues are fixed ...
Thanks!
Hi all,
Recently, adblock changed his behavior on commands : while running, sending /etc/init.d/adblock resume stop it. In order to running back, reload is mandatory. Bug or feature ?
I used /etc/init.d/adblock resume in crontab every hour to make sure adblock is running after manually suspend it in LuCI and forgot to resume manually. Any workaround ?
Thx.
root@Routeur:~# /etc/init.d/adblock status
::: adblock runtime information
+ adblock_status : enabled
+ adblock_version : 4.4.2-r3
+ blocked_domains : 494 444
+ active_feeds : adaway, adguard, android_tracking, bitcoin, disconnect, firetv_tracking, openphish, phishing_army, smarttv_tracking, spam404, stevenblack, utcapitole, winspy, yoyo
+ dns_backend : dnsmasq (2.90-r4), /tmp/dnsmasq.d, 40.74 MB
+ run_ifaces : trigger: -, report: br-lan
+ run_directories : base: /adblock/tmp, dns: /tmp/dnsmasq.d, backup: /adblock/backup, report: /adblock/report, jail: /tmp
+ run_flags : shift: β, custom feed: β, force: β, flush: β, tld: β, search: β, report: β, mail: β, jail: β
+ last_run : mode: reload, 2025-12-03T04:00:43+01:00, duration: 0m 42s, 820.98 MB available
+ system_info : cores: 4, fetch: uclient-fetch, FriendlyElec NanoPi R2C Plus, rockchip/armv8, OpenWrt 24.10.0 r28427-6df0e3d02a
root@Routeur:~# /etc/init.d/adblock resume
root@Routeur:~# /etc/init.d/adblock status
::: adblock runtime information
+ adblock_status : stopped
+ adblock_version : 4.4.2-r3
+ blocked_domains : 0
+ active_feeds : -
+ dns_backend : dnsmasq (-), /tmp/dnsmasq.d, 0 MB
+ run_ifaces : trigger: -, report: br-lan
+ run_directories : base: /adblock/tmp, dns: /tmp/dnsmasq.d, backup: /adblock/backup, report: /adblock/report, jail: /tmp
+ run_flags : shift: β, custom feed: β, force: β, flush: β, tld: β, search: β, report: β, mail: β, jail: β
+ last_run : mode: reload, 2025-12-03T04:00:43+01:00, duration: 0m 42s, 820.98 MB available
+ system_info : cores: 4, fetch: uclient-fetch, FriendlyElec NanoPi R2C Plus, rockchip/armv8, OpenWrt 24.10.0 r28427-6df0e3d02a
root@Routeur:~# /etc/init.d/adblock reload
root@Routeur:~# /etc/init.d/adblock status
::: adblock runtime information
+ adblock_status : enabled
+ adblock_version : 4.4.2-r3
+ blocked_domains : 494 588
+ active_feeds : adaway, adguard, android_tracking, bitcoin, disconnect, firetv_tracking, openphish, phishing_army, smarttv_tracking, spam404, stevenblack, utcapitole, winspy, yoyo
+ dns_backend : dnsmasq (2.90-r4), /tmp/dnsmasq.d, 40.74 MB
+ run_ifaces : trigger: -, report: br-lan
+ run_directories : base: /adblock/tmp, dns: /tmp/dnsmasq.d, backup: /adblock/backup, report: /adblock/report, jail: /tmp
+ run_flags : shift: β, custom feed: β, force: β, flush: β, tld: β, search: β, report: β, mail: β, jail: β
+ last_run : mode: reload, 2025-12-03T09:29:53+01:00, duration: 0m 38s, 818.12 MB available
+ system_info : cores: 4, fetch: uclient-fetch, FriendlyElec NanoPi R2C Plus, rockchip/armv8, OpenWrt 24.10.0 r28427-6df0e3d02a
Check if the status is paused before resuming.
adblock_status : paused
It looks like it expects resume to be used only after suspend has been issued and status is paused. done is still equal to false by line 958 and so it runs f_rmdns.
Right, I can parse the adblock_status before issuing resume but a few versions back that was not the case, I was wondering if it's a side effect or a voluntary change (I did not took the time to review the code
).
Regards ![]()