1. agriz's Avatar
    # 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.
    03-27-2018 12:14 AM
  2. T Moore's Avatar
    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
    03-27-2018 02:39 AM

Similar Threads

  1. Windows mobile to Android pains...
    By marky9074 in forum Ask a Question
    Replies: 7
    Last Post: 04-09-2018, 03:35 AM
  2. How to properly clean your Oculus Rift
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 03-26-2018, 03:10 PM
  3. Microsoft's Simplygon adds support for common CAD file formats
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 03-26-2018, 02:30 PM
  4. Best tips to keep your Windows 10 PC protected against malware
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 03-26-2018, 02:10 PM
  5. Cities: Skylines and more headed to Xbox Game Pass in April
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 03-26-2018, 11:10 AM
LINK TO POST COPIED TO CLIPBOARD