How to block a website using hosts file?

agriz

New member
Jul 14, 2016
16
0
0
Visit site
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 www.chess.com
127.0.0.1 chess.com

Whenever i open chess.com it opens that website.
I want to block it.

What is the right way to block that domain?
How to block any other domain?
I have done this before. But it is not working recently.

windows/system32/drivers/etc/hosts (without any extension)
I dont have any hosts.txt file there.
 

T Moore

New member
Jan 21, 2013
1,410
0
0
Visit site
The hosts file has no extension
My hosts file from MVPS starts off like this.

127.0.0.1 localhost

::1 localhost #[IPv6]

# [Start of entries generated by MVPS HOSTS]
#
# [Misc A - Z]
0.0.0.0 fr.a2dfp.net
0.0.0.0 m.fr.a2dfp.net
0.0.0.0 mfr.a2dfp.net
0.0.0.0 ad.a8.net
0.0.0.0 asy.a8ww.net

Lines that start with # are ignored

Now the hosts file starts with 127.0.0.1 localhost, rest of the entries 0.0.0.0
 

Members online

Forum statistics

Threads
323,300
Messages
2,243,598
Members
428,055
Latest member
DrPendragon