Sometimes you need to edit the Computer host files to access websites freely or any other reasons. Microsoft always put live host file in Windows networking due to which it differs in OSX, Windows or Linux operating but the syntax remain same in almost all platforms.
See example of typical address in all platforms: 127.0.0.1 localhosts #loopback
Let’s see how to edit Hosts file in Windows 7 and OS X 10.6.
Windows 7
Open start menu and select “run” from all programs. Write “notepad c:\windows\system32\drivers\etc\hosts” commandin Open text field. Click “OK” button and notepad will open.Now you can edit the. Suppose you want to block the face book, search forwww.facebook.comand then change IP address to 0.0.0.0. Save applied changes. Now when you try to explore face book from browser, it will not open.
Snow Leopard (OS X 10.6)
From terminal, open your favorite text editor even GUI text editor.The file will look same as Windows but it has more explanation.Again change the Face book IP address. You will see that in OS X 10.6, 0.0.0.0 IP address is a loop back. You will be directed towards computers Apache test page when you try to open face book from internet browser.















