How to Block Websites in Windows 8’s Hosts File:
How to Block Websites in Windows 8 has a new take on approaching host files by default plus, it won’t permit you to block websites such as Facebook and many more other by amending your hosts file. Fortunately, there’s a method to steer clear of this constraint.
While you insert a particular website address to Windows 8’s hosts file, it will routinely eliminate them, efficiently overlooking your alterations. And there is a valid reason for doing this.
What’s a Hosts File?
The instant you enter a website your PC links your DNS server and asks for its IP address. Using this IP you can access the website you want to.
Host file is a local file in your PC that has the ability to overrule this manner. By restricting your host file, you can direct Facebook at any IP you wish to. This ploy is used by some people to obstruct websites such that the IP won’t be able to find a web server and therefore, the connection will fail.
Why the Restriction is in Place?
Unluckily, malware frequently amends the hosts file to include such lines. For instance, the malware could point Facebook.com at a distinct IP address. Looking at the address bar, Facebook.com appears, but the user might never know that they might be viewing a phishing site.
To avoid this, Windows 8 scrutinizes your hosts file. When it observes that a website has been inserted to your hosts file, it eliminates the admission and lets connections to the normal website.
The above mentioned feature is a key security characteristic for a lot of users who might never think about altering their host files. Otherwise, you also have the option of hindering this restriction.
Ways to Bypass the Restriction
You have various choices for avoiding it because this constraint is put in place by the Windows Defender with Windows 8.
- Exclude the hosts file from being monitored in Windows Defender– in case, you prefer using windows defender instead of third-party antivirus this is the choice you should opt for. Windows will still shield you from malicious hosts file entries included by malware.
- Install a Third-Party Antivirus – numerous third-party antivirus applications are not as insistent about policing the hosts file
Excluding the Hosts File
To exclude the hosts file from being supervised in Windows Defender, initially unlock Windows Defender – push the Windows key, type Windows Defender, and force down Enter button.
Select settings tab and click the Excluded files and locations group.
Choose the Browse button and steer to the subsequent file:
Choose the Add button and then select Save Changes to save the alterations you made.
You can now easily edit and alter your host files.
Editing Your Hosts File
You need to alter your hosts file as administrator. If you release it generally and attempt to save it, you’ll come across a message reading ‘you don’t have authorization to save a file in its location’.
In order to initiate Notepad as an administrator, push the Windows key, search Notepad, right-click the application, and choose Run as administrator.
Click File –> launch in the Notepad window and navigate to the subsequent file:
You need to pick All Files in the file type at the foot of the open dialog or the hosts file won’t come into view in the list.
Insert a line for every website you wish to block. Type the number 127.0.0.1, pursued by a tab, and later enter the name of your required website.
As soon as have completed this procedure save the file. The alterations you made will be implemented instantly and hence, the website will be blocked.
Article And Images Source:
How To Geek