User Tools

Site Tools


talk:userspace:block_websites_from_hosts-file

This is an old revision of the document!


Dear Soren,

First of all I think the template for editing the hosts is great.

Subsequent code sections did not work for me. The command setAlias requires that an entry already exists in the hosts. In my opinion it should be called setHosts which worked for me.

[PatchHosts_add] setAlias %website%

[PatchHosts_remove] delAlias %website%

BR, Martin


Hello Martin

You have a point - I forgot to take into account that the 127.0.0.1 might not exist :-S I started out with the setHosts, but in my experience the hosts would be overwritten by each other, so that you would end out with just the last line from the blocklist. I need to figure out a way of using both..

Regards, Soren


talk/userspace/block_websites_from_hosts-file.1581082150.txt.gz · Last modified: 2021/08/23 08:37 (external edit)