Here is a quick Windows
So, you can simply use your system’s hosts file to direct any specific page to your computer’s IP Address. Host file is a local file to your computer system and you can configure this hosts file so that you can direct any website to your local computer and can block any site by using its numeral IP address. You can use this hosts file to block specific websites by simply configuring your hosts file. For example: if someone wants to open Google.com at your computer’s IP address then it will get connected to your local system. You cannot view the webpage that you want to visit because it will redirect you to your own IP address and the site will get blocked.
How To Block Websites In Windows 8’s Hosts File:
- First of all, you have to block the hosts file from being monitored in Windows Defender. So, just go to Windows Defender by pressing the ‘win+w’ button in combination and type ‘Windows Defender’.
- Click on the ‘Settings’ tab of the Windows Defender Menu and hit on the browse button and head over to the following file:
- Enter the directory address in to the File Location or just browse through your computer and get the hosts file.
- Just enter the file location and save the changes done to the Windows Defender to block the hosts file.
- Now, you can edit the hosts file in your text editor like notepad or word pad or you can also use notepad++ for editing your hosts file.
Editing The Hosts File
- Go to the hosts file in your computer’s directory and edit hosts file with the help of any ordinary text editor as an administrator. You can only edit the hosts file if you will work as an administrator or you can open it with the administrator privileges.
- There is a hosts file that you need to edit. So, just right-click on the hosts file and open it with notepad.
- Add the name of the website you want to block. For instance, in case you want to block the very popular Facebook.com and Google.com, then just enter the name and save the hosts file.
- The changes will immediately be saved by your hosts file. You don’t need to restart your system.
Next time when you open those pages you will find them blocked with the help of hosts file will not be shown on your browser. Go ahead and follow the steps to block websites in Windows 8.