Increase your productivity every day by following this 1 weird old tip.

$ sudo vim /etc/hosts


Until next time!


September 09, 2015, 07:45

What does it do?
Will it block the above link or redirect them to localhost?

Samujjal Permalink
September 09, 2015, 15:29

Redirect requests to all the sites listed to you localhost domain.

lava Permalink
September 09, 2015, 08:30

Since when hosts changed format?
IP host hostalias...

September 09, 2015, 15:09

Oh whoops. I thought something didn't look right. Fixed. :)

Deibit Permalink
September 09, 2015, 08:32

There are two problems with this approach. First, you have to check you are not running a http proxy in Second problem is a reflexive identity problem. It is easy to understand. If your are one of the sysadmins of these sites and your are working in the main won't work for you. Tip: you can save a character in vim: just write :wq without the !

B. K. Oxley Permalink
September 09, 2015, 10:12

Try using 0 (zero) for the address. It may skip the loopback and it's self-documenting your intent.

September 10, 2015, 16:01

he he, poor developer where do he go now :)

September 11, 2015, 17:32

Another productivity hack, use :x instead of :wq :)

Leave a new comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "coding_479": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.