Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Blocking a website with host files.?

I've gotten to my host files program, and out of all the tutorials, I notice something weird about my host file.

Here is the file:

# Copyright (c) 1993-2006 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

#

# Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

#

# For example:

#

# 102.54.94.97 rhino.acme.com # source server

# 38.25.63.10 x.acme.com # x client host

::1 localhost

Now I know normally at the bottom it says 127.0.0.1 localhost, but mine has the ::1 localhost. I was wondering what I should do next since mine is different?

1 Answer

Relevance
  • 1 decade ago

    That's the IPv6 version of the loopback. The IPv4 version is what you mentioned (127.0.0.1).

    "The loopback address should always be "localhost" whether it's IPv4 or IPv6. However, defining both 127.0.0.1 and ::1 as localhost in /etc/hosts..."

    We are running out of IPv4 addresses and the world is slooooowly moving to IPv6.

    What to do next?

    First make sure that you're computer has both IPv6 and IPv4 enabled.

    Second, keep using the host file as you planned. It should recognize both formats.

Still have questions? Get your answers by asking now.