Block a Website Address using HOSTS file

Actually, HOSTS file is using by Windows to mapping host name to an IP address. Windows has been giving us a sample. The sample is localhost name, by default that host name is mapping to IP address: 127.0.0.1. So, if you enter localhost at your browser address bar, Windows will map localhost to 127.0.0.1 address. And you can add your own host name to your chosen IP address.
Read more