Host file

andy1494

New member
Sep 6, 2015
21
0
1
Visit site
Hi I am trying to add a line in hist file but last time I did long time ago there was lot of ip inside. At the moment all I can find is a file with stuff like this
# Copyright (c) 1993-2009 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

# localhost name resolution is handled within

Can someone tell me if this is correct or not help appreciate

DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
 

HelloNNNewman

Administrator
Moderator
Oct 30, 2012
2,774
97
48
Visit site
# Copyright (c) 1993-2009 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

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
I removed your question from the quoted text above to make sure it's clear. The text you posted (above) is correct. From what I remember, if you are trying to block access to a website, you can just add the website address at the bottom with at least one # space between.

This would look like this:
facebook-localhost-entries.png



BTW.. here is a great explanation of the process
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
323,207
Messages
2,243,457
Members
428,045
Latest member
Ridhwan