Any issue with these hosts file entries?


Platinum Member
Oct 4, 2006
So I was tweaking my friend's laptop and upon showing him my custom hosts file which includes some bad URLs I don't wanna ever visit and the Microsoft Ads servers, he asked me why did I have local host in the first line and gave me an explanation that went over my head.

Is there any problem with me having the first and last line highlighted in bold? I don't remember where I saw the need to enter the addresses between those lines, I think I took that idea after seeing how the MVPS Hosts file was like

# 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:
# # source server
# # x client host

# localhost name resolution is handled within DNS itself.
# localhost
# ::1 localhost localhost
::1 localhost