Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
spam [2016/01/18 12:43]
zagi [HOSTS adblocker]
spam [2016/08/05 08:58]
zagi
Line 14: Line 14:
    
 # Perform work in temporary files # Perform work in temporary files
-temphosts1="/opt/updateHF1.txt+temphosts1="/tmp/temphosts1.$$
-temphosts2="/opt/updateHF2.txt+temphosts2="/tmp/temphosts2.$$
-temphosts3="/opt/updateHF3.txt+temphosts3="/tmp/temphosts3.$$
-temphosts4="/opt/updateHF4.txt"+temphosts4="/tmp/temphosts4.$$"
    
 # Obtain various hosts files and merge into one # Obtain various hosts files and merge into one
Line 50: Line 50:
 # Combine system hosts with adblocks # Combine system hosts with adblocks
 echo Merging with original system hosts... echo Merging with original system hosts...
-echo -e "\n# Ad blocking hosts generated "`date` > $temphosts4+echo -e "Windows HOSTS file should NOT be over 135K!\n# Ad blocking hosts generated "`date` > $temphosts4
 cat /etc/hosts.bak $temphosts4 $temphosts2 > $temphosts3 cat /etc/hosts.bak $temphosts4 $temphosts2 > $temphosts3
 sudo cp $temphosts3 /etc/hosts sudo cp $temphosts3 /etc/hosts
spam.txt · Last modified: 2016/08/05 09:00 by zagi
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready