There may be times when you want to block some websites, so that they doesn’t open in your Computer. This small trick really comes in handy for people who want to block website without the help of any software. Yes, you don’t have to install any utility or purchase any software to do this task. Infact, this is very easy to do. Read on this guide.
Follow these steps:
- Navigate to C:\WINDOWS\system32\drivers\etc
- From here, open hosts file. You will get a prompt as “Open with”. Open this hosts file in Notepad
- Simply add this line at the end of the file: 127.0.0.1 www.blockedsitename.com
So it will look like:
127.0.0.1 localhost
127.0.0.1 blockedsitename.com
If you want to block another site then just keep on adding the URL. But keep in mind that you add one URL per line. E.g. 127.0.01 yetanotherblockedsite.com
That’s it. Now just save the file by pressing “Ctrl + S”. By using this trick, you can block many websites that you think can harm your Computer. To unblock website, simply remove these lines and Save it again.
So why edit hosts file and block websites ?
Because this is the easiest way to do it, without even installing any software on the PC.
A quick tip here. Instead of manually navigating to that folder and opening that file, you can also paste this path in RUN. If you’re running Windows 7, then just open Start menu and paste this path.
Leave a Reply