Sometimes I decide that I never want to re-visit a particular website ever again, and I want a way to block it indefinitely. Normally, I just learned to ignore a website simply out of self-discipline. Lately, I decided I wanted something more secure. After all, even with self-discpline, I could still accidentally visit said site from a link found on another unblocked site. I figured out a good solution: the Windows hosts file.
Windows features a special file simply called “hosts”, without an extension. This file allows users to map hostnames to IP addresses. More importantly, however, is that when Windows tries to locate nodes on any given network, it will take the hosts file into consideration. It will actually consider the hosts file prior to querying DNS server, and any mappings found within will override those in the DNS. This effectively allows us to write custom redirections that affect the entire system – this was the key to blocking the website. To demonstrate how I used this to my advantage, here’s what the default HOSTS file looks like in Windows 7:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
If I wanted to permanently block:
- kanyewest.com
- kanyeuniversecity.com
I would add the following entries to the file, in bold:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 kanyeuniversecity.com
127.0.0.1 www.kanyeuniversecity.com
127.0.0.1 kanyewest.com
127.0.0.1 www.kanyewest.com
By doing this, I’m telling Windows that whenever it encounters one of those domains, it should immediately resolve them to the IP 127.0.0.1, rather than querying the DNS server for the IP. The IP 127.0.0.1 is a special “loopback” IP – it pretty much points to whatever machine you are currently using. That’s how these domains are blocked – Windows will actually be told to use 127.0.0.1, which will definitely not work (since the local machine is not a web server, and is not configured to serve such content). This exact technique is used by Spybot Search & Destroy‘s Immunize feature – so when you open your HOSTS file, you might already see a bunch of entries blocked.
Notice, also, how I added two entries per website I want to block – one with “www.”, and one without it. I considered this necessary because of the following: from the point of view of a DNS server, “www.websitenamehere.com” and “websitenamehere.com” are two completely different domains; however, in most cases, on the Internet, they tend to be configured to point to the same IP address, so we rarely see instances where they behave differently. Still, since they are different at the DNS level, both possibilities needed to be added to HOSTS file.
Ultimately, once configured, the end result is this: whenever you try to access a blocked site, you’ll get this type of error:
There you have it – a way to block websites in Windows, and a browser-independent one at that. As for the procedure for editing the HOSTS file, it differs depending on which version of Windows you are using – simply include the Windows version when you Google.




Looking back, I can’t help but laugh at this experience… but at the same time, I’m really taken aback at how rough of a doctor that guy was – I’m not referring to his work, more so his human interaction skills, or lack of. I felt rushed, and a little overwhelmed with the news of 6 cavities. I was perfectly willing to get them fixed by the same doctor, but he was obviously offended that I was going to postpone the “repair” appointment. A little strange too – I was there for my main appointment, it’s not like I completely bailed on them. If I was told in advance he reacted so brutally to such a “cancellation”, I would of probably decided to go elsewhere. He couldn’t get it through his head that I simply wasn’t mentally well with doing it so quickly – some people would need even more time than me, but apparently those people are destined to be rejected by that doctor. I thought to myself, while there, how he would be with kids – how unfortunate for them… having a father that lacks basic human understanding and compassion. I’ll rate him according to my experience on Google Maps and probably 







Ever since Windows 3.1, Microsoft included the Windows Help program (WinHlp32.exe) with new releases. WinHlp32.exe is used to view 32-bit Help files that have the .hlp file name extension. Starting with the release of Windows Vista and Windows Server 2008, Microsoft has decided to no longer include in WinHlp32.exe as a component of the Windows operating system. Microsoft made this decision because WinHlp32.exe has not had a major update for many years, and it does not meet our standards for all new Microsoft programs. Microsoft realizes that this may cause some problems for customers who want to upgrade to Windows Vista or to Windows Server 2008 but still rely on 32-bit .hlp files. Therefore, Microsoft is making WinHlp32.exe available as a download from the Microsoft Download Center.
First off, he isn’t afraid of water – at all. In fact, he has a weird attraction to it. Whenever I turn on a faucet, he runs right over, and when he can’t see what I’m doing, or can’t maneuver to get a better view, he just looks up at me and meows. The reaction is almost like what you would expect when you open up a can of cat food, except it’s for water. He does have a bowl of water accessible at all times, and the water is changed once a day; yet, it seems he actually prefers water from the sink. After realizing this, I started partially filling up the sink with water before I leave for work – I know for a fact he much prefers drinking from there. My theory is that he thinks it is fresher than the water he gets from his bowl, and that is usually correct. It also turns out that he doesn’t mind being almost completely submerged in water. I found this out when I had to give him a bath – he just stays still and looks a little confused. After the bath is over, he looks slightly irritated, though… but I can’t blame him.
The next thing I found unusual was his reaction to being transported around. See, on the weekends, my parents usually drop by and bring him over to their place. I realized early on that this was a good idea, seeing as it gives him contact with other cats – and it also helps make up for the fact that he’s an indoor cat. My parents have five cats – three females and two males. To move him around, I had to come up with some unique transportation methods. The default cardboard box idea never worked well – he would just freak out on the drive over. If we let him loose in the car, he’d be very calm, but would explore way too much – too dangerous when we are driving.
This approach worked well for a long time; however, he eventually grew larger, and I had to come up with a better way to move him around. I thought about using a bag – but my backpack was pretty expensive, so I didn’t want to use that. Also, if I wore the backpack as it was intended – the cat would be out of my reach. Since he’s an indoor cat, I can’t risk him escaping in-transit. Instead of a backpack, I grabbed a re-usable grocery bag, and tried putting him inside. He didn’t seem to mind. I could walk around, and he’d make like a bag of potatoes – rarely moving – rarely even taking a peek from the opening. After a few field tests, it was proven that the bag idea worked just as well as the jacket. You can even tie the bag shut, and he’d just stay calm.
Another interesting thing about my cat is that he also stays pretty calm when I put him on my shoulder. I’ve actually had a cat before that would stay on my shoulder for many minutes – at times, up to an hour. So, naturally, I began training my cat in the same manner. With that in mind, whenever a delivery person arrives at my door, I always place my cat on my shoulder while I interact with the person. My cat just lays there and watches curiously as I give the guy my credit card and we finish off the payment. As a bonus, it usually amuses the delivery people.