Skip to content

Instantly share code, notes, and snippets.

@iamwilhelm
Created August 9, 2010 19:02
Show Gist options
  • Save iamwilhelm/515921 to your computer and use it in GitHub Desktop.
Save iamwilhelm/515921 to your computer and use it in GitHub Desktop.
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 www.onemorelevel.com
127.0.0.1 onemorelevel.com
#127.0.0.1 www.hulu.com
#127.0.0.1 news.ycombinator.com
#127.0.0.1 www.facebook.com
#127.0.0.1 www.youtube.com
#!/bin/sh
# starts blocking all sites so I can start working
bash -c "awk '{sub(/#127/, "127")};{print}' /etc/hosts > /etc/hosts.new; mv /etc/hosts.new /etc/hosts;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment