Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
spam [2015/07/31 14:51] zagi |
spam [2016/08/05 09:00] (current) zagi |
||
|---|---|---|---|
| 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 " | ||
| + | # | ||
| + | # IPv4 | ||
| #sed -e ' | #sed -e ' | ||
| - | + | # | |
| - | sed -e ' | + | # IPv6 ready |
| + | sed -e ' | ||
| # 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 " | + | echo -e "# Windows HOSTS file should NOT be over 135K!\n# Ad blocking hosts generated " |
| cat / | cat / | ||
| sudo cp $temphosts3 /etc/hosts | sudo cp $temphosts3 /etc/hosts | ||
| Line 57: | Line 62: | ||
| echo " sudo cp / | echo " sudo cp / | ||
| echo "so don't delete that file! (It's saved read-only for your protection.)" | echo "so don't delete that file! (It's saved read-only for your protection.)" | ||
| + | |||
| + | # *buntu style | ||
| + | / | ||
| + | |||
| </ | </ | ||

