Block undesirable websites using Windows host file

Block undesirable websites using Windows host file


Kids can get up to lots of mischief on the internet when we aren’t watching. Some even go as far as to pretend to be sleeping just to get up as soon as you go to bed, which means they are tired the next day and you have no idea what they are getting up to online.

Even a site like YouTube can be harmful to your child. The latest craze on YouTube is to watch game-play, this might sound harmless, but the fact is that the people who stream these games have a tendency to swear and discuss subjects that are not suitable for children.

Luckily there are ways to block explicit websites or restrict access to times when you will be able to monitor your child’s activity.

To block or restrict access in Windows couldn’t be easier and it’s free. You will need to have administrator privileges to change the host file. Do not attempt this unless you feel comfortable making the modifications and taking the risk.

Type “C:WindowsSystem32driversetc” in the Windows search bar. Double click ‘host’ and select Notepad. Look for the text underneath the last line of text that refers to the local host. Enter “” and press the spacebar. Type the IP address of the site you would like to block on the same line, eg. “”.

Repeat the process to block more websites. Remember to use ‘www’ and not ‘http’ to render the entry valid and do not alter any other text in the host file.

One you are done, click the ‘File’ option in the upper left corner and select ‘Save’. Do not change the save location or name and ignore the warning regarding editing the host file. You may now close the Notepad.

You might have to restart your browser before the changes occur, after the changes have taken effect you should get a blank page when you try to access any of the blocked websites.