5/18/10

Blocking Websites with the Hosts File

#v5-12
#http://blog.expressionsoftware.com/2010/05/ad-block-host-file-entries.html

#mac
#  path: /etc/hosts
#  ls -1alt /etc/hosts*
#  head -20 /etc/hosts

#windows
#  path: C:\windows\system32\drivers\etc\hosts
#  gci C:\windows\system32\drivers\etc\hosts* -force
#  gc C:\windows\system32\drivers\etc\hosts | select -first 20

127.0.0.1 spam.com
127.0.0.1 f.ads.com
127.0.0.1 www.msn.com

No comments:

Post a Comment