28+ Block Internet Using Host File
Gif. Last updated sep 23, 2020 0. Using this trick, you can block certain web sites from opening in the web browser on your computer.
I need to block a few websites on my home computer. A simple file that maps ip addresses to host names, how can it help block ads online? Block websites using your hosts file.
This is done by the operating system, and will block data on any browser of other program.
The hosts file is a plain text file called hosts.txt that maps hostnames to ip addresses. The domain name system (dns) is a remote database used in most operating systems the host file is resolved in preference to dns requests, so if the hosts file resolves the hostname, the request never leaves. First, navigate to the system32 directory of windows create a backup of your hosts file in case you do something wrong. A hosts file is used to manually force map a hostname to an ip address without relying on a dns service.