Import&Export AdAway compatible filter lists

https://adaway.org/ is a great app to filter ads directly on your cellphone or tablet.
It would be cool if Pi-Hole could import the Adaway settings backup into its filters as well as export the filter lists that it uses into an adaway compatible backup.json so you can easily synchronize both devices.

AdAway uses the same format for adlists as Pi-hole does (hosts format). You can use their adlists also in Pi-hole.

1 Like

Can you link to anything that shows the json schema for AdAway? We store the lists in a sqlite3 database and it may be possible to provide a way to export in to a specific schema.

is the code block responsible for creating the file.
Let me see if i can get a better description.
Importing would be the more intresting part.

1 Like

Thanks, what we need is the actual schema or how the JSON needs to be formatted to work.

adaway-backup.zip (2.5 KB)
I think that should be easier to do than reading sourcecode

Looking at the sample file, i think the individually blacklisted or whitelisted hosts should not be imported as such if they are part of existing blocklist. Similiar things are true for blocklist adresses.
I guess some deduplication could certainly help here.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.