This shows you the differences between two versions of the page.
talk:userspace:block_websites_from_hosts-file [2020/02/07 13:30] bobzbobz |
talk:userspace:block_websites_from_hosts-file [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | 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 :-/ | ||
- | |||
- | I started out with the **setHosts**, | ||
- | |||
- | I need to figure out a way of using both.. | ||
- | |||
- | Regards, | ||
- | Soren | ||
- | |||
- | |||
- | ---- | ||
- | |||