credmp / hed

Hosts EDitor, it will add/update/delete host entries for you
https://www.arjenwiersma.nl
GNU General Public License v3.0
13 stars 3 forks source link

feature request: ad blocker #25

Open amkuipers opened 2 years ago

amkuipers commented 2 years ago

Enable feature that hed can download an add-blocker list (like pi hole) and appends it to the hosts file.

hed adblock https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

Advanced: mark beginning/end of the list with a magic comment so that the hed tool can also remove this list easy.

Advanced: have some preconfigured url's for blocker lists

credmp commented 2 years ago

How about an import feature? That makes it independent of the use of the list.

LevitatingBusinessMan commented 2 years ago

And a systemctl timer unit to update the imported list?

amkuipers commented 2 years ago

There are all kind of external lists, this new feature should convert a list to the hosts file format using ip 0.0.0.0 . So that browsers will not retrieve ads that are listed. To manage a refresh of the list, add commented magic lines before and after the list. Or use some versioning/backup files. Edit: I missed the commit above, sorry