Dec 23, 2013. Block website using Hosts file. To block a website using the Hosts File, simply add the following entry: 127.0.0.1 blocksite.com. Although I do not do it, many users like to manually add entries to it in order to block the opening of one or more particular websites. Others, like to download and use List from. How to Block Websites. The internet can be a scary and dangerous…