Ad blocking in SailfishOS in 2023 - What are the options?

Just to clarify:

There’s nothing wrong with using a single hosts file, but I wanted to go the extra mile, as discussed in this thread.

Therefore the script has grown quite complex:

  • it converts uBO’s uAssets as far as possible to be used by /etc/hosts
  • it downloads everything from firebog.net’s meta list plus Steven Black’s largest hosts file
  • it combines and unique-sorts everything, adds a header and finally overwrites the old /etc/hosts

My tutorial mostly describes how to make updates automatic; the script itself can be treated as opaque.

Thanks to @FelixWilke for automating that in turn, and directly linking to my script. If you want you can use this link instead and I’ll try my best to make sure not to break compatibility in future updates.

5 Likes