How to block a website using hosts file?

agriz

New member
Jul 14, 2016
16
0
0
# 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.
 
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

No members online now.

Forum statistics

Threads
338,968
Messages
2,261,992
Members
428,750
Latest member
Ironmonkey810