Adblock support thread

i removed adblock package a while ago. now i tried installing it again. install completes successfully, but adblock does not show up in the menu. also not after rebooting the router.

Post the output of opkg list-installed | grep "adblock", most probably you haven't installed the luci addon.

1 Like

that was it. thank you.

Dear,
I think I found an issue with latest adblock 4.1.4 with dnsmasq-full 2.86 on openwrt 22.03

Please try these settings.
add a domain in whitelist example amazon.com
then in dhcp and DNS option add the same domain on DNS forwardings

list server '/amazon.com/1.1.1.1'

Reload Adblock, restart dnsmasq.

Open browser and go to amazon.com

After some second you have that Instance dnsmasq::cfg01411c s in a crash loop 6 crashes, 50 seconds since last crash

@dibdot Where I'm wrong?

IMHO, these settings makes no sense ...

the server entry in your dhcp config sets:
[...]
using nameserver 1.1.1.1#53 for domain amazon.com
[...]
vs.
the whitelist entry in adblock sets:
[...]
using standard nameservers for amazon.com
[...]

Just remove the whitelist entry or report it to dnsmasq upstream.

Ok, so if

using nameserver 1.1.1.1#53 for domain amazon.com

It is automatically whitelisted right?

yep, you've defined manually an upstream server for this domain.

OK, thanks!

Adblock shows status "enabled" with 300k domains blocked. I also put a domain on blacklist for testing. But it can all still be accessed by the clients connected to the box. /etc/resolv.conf of the client included lan and wifi interface.
How can I make sure that all queries are filtered by the Adblock?

Hi, is there an option in adblock, to exclude specific IP on local LAN from having ads blocked, in other words I want ads to be allowed to go to a specific host on my local network.

I reset my settings in OpenWRT. Then I just installed Adblock and it worked briefly but then it stopped working. Strange behaviour.

can sombody please explain what Enable SafeSearch do?

It's a filter for explicit content, like language, porn, etc.

1 Like
1 Like

Same question here but in the other way, I want to include devices which will be using adblock so the other devices on the network won't be using it.

Is it possible ?

I've read that we need to force another DNS server on the device itself so the device ignores AdBlock. If there is any new/better ways, I take! :slight_smile:

What is "Additional Jail blocklist" ?

"Includes an option to generate an additional, restrictive 'adb_list.jail' to block access to all domains except those listed in the whitelist file. You can use this restrictive blocklist manually e.g. for guest wifi or kidsafe configurations"

If we can configure it for the guest wifi so it means we can add a list only for specific interface ? Is there any tutorial on this functionality ?

Edit : Found the topic for the tool. Thanks.
https://forum.openwrt.org/t/kidsafe-or-guest-wifi-forced-safesearch-and-adblock/6559

I've been using Adblock for few years now. But I'm curious if the latest Adblock version takes the advantage of multiple CPU cores for efficient DNS lookup? I stumbled upon this thread 22.03 allows you to use huge blocklists with dnsmasq

I'm using RPi4 4GB and I didn't notice much difference in loading of webpages with each method. Do you think is there any performance benefit by just using blocklist with dnsmasq in current snapshot?

What do you mean by that? Since ver 2.86 dnsmasq uses a new optimized dns/blocklist code, excerpt from the upstream changelog (https://thekelleys.org.uk/dnsmasq/CHANGELOG)

Major rewrite of the DNS server and domain handling code.
	This should be largely transparent, but it drastically
	improves performance and reduces memory foot-print when
	configuring large numbers domains of the form
	local=/adserver.com/
	or
	local=/adserver.com/#
	Lookup times now grow as log-to-base-2 of the number of domains,
	rather than greater than linearly, as before.

Adblock uses multiple CPUs/Cores during blocklist processing and supports the "new" optimized dnsmasq syntax since adblock 4.1.4. BTW, you can use the referenced full OISD list in adblock as well - IMHO that makes no sense on weak 128 MByte routers ... but it will work. :wink:

1 Like

That's great! :smiley:

May I ask how we can add OISD or any custom list in adblock? Or is it already available in the blocklist source list?

Please consult the online readme (see first post). To get the current available/enabled lists you can use the syntax below as well (OISD variants are already included):

root@blackhole:~# /etc/init.d/adblock list
::: Available adblock sources
:::
    Name                 Enabled   Size   Focus                Info URL
    -------------------------------------------------------------------
  + adaway               x         S      mobile               https://github.com/AdAway/adaway.github.io
  + adguard              x         L      general              https://adguard.com
  + adguard_tracking     x         S      tracking             https://github.com/AdguardTeam/cname-trackers
  + android_tracking     x         S      tracking             https://github.com/Perflyst/PiHoleBlocklist
  + andryou                        L      compilation          https://gitlab.com/andryou/block/-/blob/master/rea
  + anti_ad                        L      compilation          https://github.com/privacy-protection-tools/anti-A
  + anudeep                        M      compilation          https://github.com/anudeepND/blacklist
  + bitcoin              x         S      mining               https://github.com/hoshsadiq/adblock-nocoin-list
  + disconnect           x         S      general              https://disconnect.me
  + doh_blocklist        x         S      doh_server           https://github.com/dibdot/DoH-IP-blocklists
  + energized                      VAR    compilation          https://energized.pro
  + firetv_tracking                S      tracking             https://github.com/Perflyst/PiHoleBlocklist
  + games_tracking                 S      tracking             https://www.gameindustry.eu
  + hblock               x         XL     compilation          https://hblock.molinero.dev
  + lightswitch05                  XL     compilation          https://github.com/lightswitch05/hosts
  + notracking                     XL     tracking             https://github.com/notracking/hosts-blocklists
  + oisd_basic                     L      general              https://oisd.nl
  + oisd_nsfw            x         XL     general              https://oisd.nl
  + oisd_full                      XXL    general              https://oisd.nl
  + openphish                      S      phishing             https://openphish.com
  + phishing_army        x         S      phishing             https://phishing.army
  + reg_cn                         M      reg_china            https://easylist.to
  + reg_cz                         M      reg_czech+slovak     https://easylist.to
  + reg_de                         M      reg_germany          https://easylist.to
  + reg_es                         M      reg_spain            https://easylist.to
  + reg_fi                         S      reg_finland          https://github.com/finnish-easylist-addition
  + reg_fr                         M      reg_france           https://forums.lanik.us/viewforum.php?f=91
  + reg_id                         M      reg_indonesia        https://easylist.to
  + reg_it                         M      reg_italy            https://easylist.to
  + reg_kr                         S      reg_korea            https://github.com/List-KR/List-KR
  + reg_nl                         M      reg_netherlands      https://easylist.to
  + reg_pl1                        S      reg_poland           https://kadantiscam.netlify.app
  + reg_pl2                        S      reg_poland           https://www.certyficate.it
  + reg_ro                         M      reg_romania          https://easylist.to
  + reg_se                         s      reg_sweden           https://github.com/lassekongo83/Frellwits-filter-l
  + reg_ru                         M      reg_russia           https://easylist.to
  + reg_vn                         S      reg_vietnam          https://bigdargon.github.io/hostsVN
  + smarttv_tracking     x         S      tracking             https://github.com/Perflyst/PiHoleBlocklist
  + spam404                        S      general              https://github.com/Dawsey21
  + stevenblack                    VAR    compilation          https://github.com/StevenBlack/hosts
  + stopforumspam        x         S      spam                 https://www.stopforumspam.com
  + utcapitole                     VAR    general              https://dsi.ut-capitole.fr/blacklists/index_en.php
  + wally3k              x         S      compilation          https://firebog.net/about
  + whocares                       M      general              https://someonewhocares.org
  + winhelp                        S      general              https://winhelp2002.mvps.org
  + winspy               x         S      win_telemetry        https://github.com/crazy-max/WindowsSpyBlocker
  + yoyo                 x         S      general              https://pgl.yoyo.org/as
    ---------------------------------------------------------------------------
  * Configured utcapitole categories: -
  * Configured energized variants: -
  * Configured stevenblack variants: -

1 Like