Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

echo "google.com 127.0.0.1" >> /etc/hosts


Yeah, I recommend against this particular example :)


Do this on your friends and families computers, and change the world.


There's a couple of comments showing hostname followed by IP address. Are commenters really putting entries in this format into their HOSTS file? And it works? The correct format, at least on BSD UNIX and Windows, is IP address followed by hostname.


Would need to be www.google.com to be effective, this just breaks the redirect.


duckduckgo it

echo "google.com 54.215.176.19" >> /etc/hosts




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: