User Tools

Site Tools


talk:userspace:block_websites_from_hosts-file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

talk:userspace:block_websites_from_hosts-file [2020/02/07 13:29]
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 :-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.txt ยท Last modified: 2021/08/23 08:37 (external edit)