I made this simple hosts file editor for Windows Operating Systems. Basically, a hosts file is a file that contains rerouting addresses for you PC's network connections. For example, the word local host when pinged points to 127.0.0.1 in most PC's. It's called the loop back address, and the localhost is addressed to this loopback address.
If you want other strings to become your own loopback address then you can add them on the hosts file in your windows PC. It's located at %system32%\drivers\etc.
The format is simple. First the IP Address, space, then the host. Just like the following example:
127.0.0.1 www.ourhomepc.com
127.0.0.1 www.facebook.com
In the second line of the example, it will certainly make facebook.com a loop back address instead of searching the for the correct IP address from your DNS Server it will consider it as localhost immediately. In the end, you'll not be able to go to facebook, practically blocking your access to it. This should make the purpose of hosts file now, it blocks access to certain addresses. It's like your local DNS server pointing at all the wrong directions.
I made this simple software to automate the process of formatting a list of websites in to a hosts file compatible format. First you have to have a list of websites you want to your PC to block access to. Like this one. Then you use the software to open the list and save it with a hosts file name (no extentsion name) at %System32%\drivers\etc.