Adblock 4 pre-releases

I don't want to pollute the current adblock support thread with discussions regarding adblock 4 pre-releases, therefore I've added a new topic for this ... :wink:

Update: official PRs for adblock 4.0.0 has been added, therefore I've removed the pre-releases from my github account.

Main changes:

  • Complete rewrite, this is no drop-in update (see update notices!)
  • new package dependencies: coreultis-sort and a download util with SSL support
  • focus on speed (multicore-support) to handle quite big lists
  • include 35 pre-configured blocklist sources in a compressed json file (/etc/adblock/adblock.sources.gz)
  • SafeSearch support for google, bing, duckduckgo, yandex, youtube and pixabay
  • DNS backend autodetection
  • Download Utility autodetection
  • Report Interface autodetection
  • Easy cron wrapper to set an adblock related auto-timer
  • raw list support (e.g. for dnscrypt support)
  • Complete LuCI rewrite (migrated to client side JS), see screenshots in the second post
  • much more ...

Update notices:

  • only compatible with master and 19.07.x
  • please stop adblock 3.8.x: /etc/init.d/adblock stop
  • check /etc/config/dhcp and remove any 'serversfile' entries
  • download & install the pre-releases from above github link: opkg install <...>
  • have fun! :wink:

Current status:

  • tested with 19.07 and with latest master
  • tested with dnsmasq, kresd, bind and unbound in my production environment
  • raw mode has been tested successfully by users
  • docs are updated
  • no more bugs! :wink:

It would be great if you could test this pre-release as well - thanks!


Some LuCI screenshots:


Will try this build during the week fully.

I did try it earlier however it was crashing dnsmasq big time, in such a way that even dhcp wasn't working after nor internet so reverted back to the current adblock again.

I will test again and will make sure i get a log.
However from what i saw and used, it was really nice to see adblock come a far long way from the 3.8 branch.

Thanks for testing!
Please always start with the default config and go from there (ideally with enabled debug flag).
Anyway, in pre0 I've forgot to expose the 'adb_tmpbase' directory option to LuCI. This base temp directory (default points to /tmp) is used by adblock for all runtime operation like downloading, sorting, merging etc. ... if you run in OOM conditions it's worth a try to change this directory option.

Thanks for this looks like a cool update. Will you be adding more lists like PiHole?
The list i am interested in is

Have issue when install. Testing on master build myself.

root@AG300H:/tmp# ls *.ipk
root@AG300H:/tmp# opkg install adblock_3.99pre0-1_all.ipk
Collected errors:
 * pkg_init_from_file: Malformed package file adblock_3.99pre0-1_all.ipk.
root@AG300H:/tmp# opkg install luci-app-adblock_git-20.066.64757-78ec13b-1_all.ipk
Collected errors:
 * pkg_init_from_file: Malformed package file luci-app-adblock_git-20.066.64757-78ec13b-1_all.ipk.
OPENWRT_TAINTS="no-all no-ipv6"
OPENWRT_RELEASE="OpenWrt SNAPSHOT r12470-dfb7a4ce5d"

Maybe you've downloaded corrupted files!? Please re-download and check the sha256sum:

expected sha256sum of 3.99pre0:
adblock: a0e6354fa4be3f7fa0fd41482d5bc8960588cd4230a9a5d45cf3d0035a2a362b
luci-app-adblock: 195dcbb03b77d422358bde72bd38a42d6e016afecc9366067f3376602389c224
1 Like

No problem, I'll add the list with the next pre-release


Collected errors:
 * pkg_init_from_file: Malformed package file adblock_3.99pre0-1_all.ipk.

I got this when I did a wget straight to my openwrt router. Download to a USB stick and install from there. That works fine. the githib link does not point to the raw file.

try using this script i made

/etc/init.d/adblock stop
opkg remove luci-app-adblock
opkg remove adblock
rm /etc/config/adblock
opkg update
opkg install coreutils
opkg install coreutils-sort
opkg install adblock_3.99pre0-1_all.ipk
opkg install luci-app-adblock_git-20.066.64757-78ec13b-1_all.ipk

Place that in a .sh file and then chmod +x .sh then run ./.sh
it will then do everything for you.

@dibdot I have a funny feeling people was simply wget'ing the file links directly from github without using the raw link using the script above solves this.

1 Like

@solidus1983 many thanks, I'll add direct download links to the first post!
Meanwhile I've pushed 3.99pre1 to my github account with the following changes:

  • add 'smarttv' source
  • add 'Base Temp Directory' option
  • minor visual LuCI tweaks
  • fix some minor backend issues

you mean i have to change my script again lol.

1 Like

Thanks dibdot :+1::clap:

Have "xhr request time out" "xhr request aborted by browser" error sometimes, this error appears in both firefox and chrome browser.

I want to have the option to add blocklist myself as in the previous version ?

Thanks, I was waiting for this! :slightly_smiling_face:

Isn't there a file /etc/adblock/blacklist.blocklist anymore?

More context please ... when does this happen exactly? Mobile or desktop browser?

Just gunzip /etc/adblock/adblock.sources.gz, change/add a json source object and gzip the file finally. It's just not documented yet ...

The problem is related to ublock-origin browser addon, when I'm turn it off the error doesn't appear anymore.

Thanks for hard work. :slight_smile:

can this be used 19.07.x stable

Yes, it's compatible with both master and 19.07