Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
spam [2016/01/18 11:55] zagi [HOSTS adblocker] |
spam [2016/01/18 12:52] zagi [HOSTS adblocker] |
||
---|---|---|---|
Line 14: | Line 14: | ||
# Perform work in temporary files | # Perform work in temporary files | ||
- | temphosts1="/ | + | temphosts1="/ |
- | temphosts2="/ | + | temphosts2="/ |
- | temphosts3="/ | + | temphosts3="/ |
- | temphosts4="/ | + | temphosts4="/ |
# Obtain various hosts files and merge into one | # Obtain various hosts files and merge into one | ||
Line 37: | Line 37: | ||
# 6. Delete any comments on lines | # 6. Delete any comments on lines | ||
# 7. Clean up leftover trailing blanks | # 7. Clean up leftover trailing blanks | ||
+ | # 8. We whitelist hosts j.mp | ||
+ | # | ||
# Pass all this through sort with the unique flag to remove duplicates and save the result | # Pass all this through sort with the unique flag to remove duplicates and save the result | ||
echo " | echo " | ||
Line 44: | Line 46: | ||
# | # | ||
# IPv6 ready | # IPv6 ready | ||
- | sed -e ' | + | sed -e ' |
# Combine system hosts with adblocks | # Combine system hosts with adblocks | ||
Line 62: | Line 64: | ||
# *buntu style | # *buntu style | ||
- | #/ | + | / |