What is 'Hosts system file' for?

Status
Not open for further replies.

a cooperator

Distinguished
Aug 7, 2012
422
0
18,780
Hi,

I was told to edit hosts file with such a list of codes below highligtened in this screen shot below when the pop-up of "IDM has been registered with a fake serial number' showed up whenever I started my computer. However, when I done, then I cannot visit only 'IDM websites' at all. And it returns 'this webpage cannot be displayed'

rxj9ezUw


So, my question is do you think 'hosts' file only made to bypass the auto update check and registration from backed file/remote server? (i.e. do you think that 'hosts' system file is only for such cases I mentioned above?)

 
Okay, so a bit of explanation. Computers talk to one another using IP Addresses - which are numbers. The problem is that humans are not very good at remembering numbers and would prefer to use sensible names for things that we can remember. So we use names and there is a system called DNS which allows those names to be "looked up" and the correct number returned... which the computer then uses to go off and talk to that website.

So when you put www.google.com into your browser, your computer does a DNS lookup on "www.google.com", gets Google's Web IP address back, and uses that IP address (number) to talk to Google, and you get your search window.

BUT, your computer takes one extra step before doing a DNS lookup on the site (www.google.com for example). It checks your HOSTS file to see if there's a matching record in there, and if there is, it uses that record instead of doing a DNS lookup.

So in your HOSTS file you've attached above, you can see that "tonec.com" is in the HOSTS file, and it points to 127.0.01 - which will actually point it back to your own computer (127.0.0.1 is a unique address called the "loopback address", which automatically points back to your own computer). That's the standard way of "breaking" a website, because when you try and get there you'll just get looped back to your own PC.

The same for InternetDownloadManager.com -> you cannot access that website while that line exists in your HOSTS file.

Any of the the lines that start with a # are comments - so they get ignored and the computer will continue to DNS (and you can get to the website), but those that have 127.0.0.1 -> you can't access those websites unless you delete that line from your HOSTS file, or just put a # as the first digit in the line.

I don't know why your HOSTS file has been changed, but as it is configured at the moment you can't access tonec.com, www.tonec.com, or www.internetdownloadmanager.com

I know some Anti virus/Spam/Spyware programs (SpyBot for example), will put a whole bunch entries into your HOSTS file to prevent you getting to known Spyware sites. Perhaps that's why you have those entires there?
 


Thanks a lot,
Yes, I deliberately added those 11 lines of code after the last line in the original ‘hosts’ file shown in the spoiler below while was trying configuring some registration of IDM.

However, my hosts only has these lines of code.
# 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


My questions are: I don't know if those lines of code in spoiler above is for my hosts file when I have installed a fresh Widows 7 system. Or there are other programs automatically editing hosts files?

I know some Anti virus/Spam/Spyware programs (SpyBot for example), will put a whole bunch entries into your HOSTS file to prevent you getting to known Spyware sites. Perhaps that's why you have those entires there
2- I manually added 'those 11 lines of code highlighted in my first screen shot in order not to IDM detects new updates automatically while I am making an IDM-cracking registration. Though it was not successful.

3- Also, I don't know if there some other manually configurations which can be made in the hosts file to do some other process?
 



Thanks a lot,
Yes, I deliberately added those 11 lines of code after the last line in the original ‘hosts’ file shown in the spoiler below while was trying configuring some registration of IDM.

However, my hosts only has these lines of code.
# 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


My questions are: I don't know if those lines of code in spoiler above is for my hosts file when I have installed a fresh Widows 7 system. Or there are other programs automatically editing hosts files?

I know some Anti virus/Spam/Spyware programs (SpyBot for example), will put a whole bunch entries into your HOSTS file to prevent you getting to known Spyware sites. Perhaps that's why you have those entires there

2- I manually added 'those 11 lines of code highlighted in my first screen shot in order not to IDM detects new updates automatically while I am making an IDM-cracking registration. Though it was not successful, I am now unable to visit an http://internetdownloadmanager.com/. Thus, do you think that adding the eleven codes into Hosts file caused this. Also, do you think that hosts file is dedicated to only adding codes to bypass the liveupdate to IDM.

3- as my hosts is configured at the moment, why I can't access tonec.com, www.tonec.com, or ww.internetdownloadmanager.com?


4- Also, I don't know if there are some other manually configurations which can be made in the hosts file to do some other process(i.e. hosts file is only dedicated to be configured at the moment to not access tonec.com, www.tonec.com, or ww.internetdownloadmanager.com?)
 
Okay - I've read your responses three times now and I'm still not 100% sure I understand what the problem is, or what you're asking.

Just to clarify something from the start: any line that starts with a # is a comment and won't be processed. So in your Hosts file from your most recent post, you can see that every line starts with a # and therefore is equivalent to a blank hosts file. That is the way you expect your file to look on a fresh build.
Also, it's very unusual that you'd actually want to edit your HOSTS file. And you certainly don't want to do it unless you really understand what you're doing (I still don't understand what you're trying to do, so I can't really advise whether or not you're going about it the right way).

So RE QN 1) -> yes, original hosts file should look like the one immediately above - no actual entries, just full of comment lines (starting with #)
QN 2) the original hosts file you linked would have made your computer talk back to itself any time it tried to contact "internetdownloadmanager.com" BUT - there's a comment on the following line for "www.internetdownloadmanager.com" -> so going to the website without the "www" prefix would point back to your computer (i.e. not contact the actual site on the internet), while using the "www" prefix would use DNS and put you in touch with the actual website.

QN3) I don't quite know how your hosts is configured at the moment. But I've explained how the HOSTS file works which should be enough for you to answer your own question. If those sites are in your hosts file with a bogus IP address (like 127.0.0.1) then you can't access them. If they're not (or they're preceeded with a "#") then you should be able to access them.

4) Sorry, but I have no idea what you're asking here.
 


I really tried playing with Hosts File and copying that 11 codes below to remove ‘IDM Has Been Registered With The Fake Serial Number ’ Error. I though that this trick would allow me to use IDM without even registering IDM on internet. However, it was not successful.

Almost everyone is aware about ‘Internet Download Manager’ (IDM). You might have been using this application since it helps you to download files from web at high speed. I would say, this is from one of the best tool to be used to download files from internet. But you may have been facing the pop up that ‘IDM has been registered with the Fake serial number ’.
This pop up is really very irritating since it appears every time when you are about to download some file or when you start your system. This error leads you to search for cracked file from torrent and other alternative.

So, I used this trick below to get rid of this pop up without using any torrent file or without using any fake serial key.
I have copied the below lines of code and paste it after the last line in the ‘hosts’ file.

127.0.0.1 tonec.com
127.0.0.1 www.tonec.com
127.0.0.1 registeridm.com
127.0.0.1 www.registeridm.com
127.0.0.1 secure.registeridm.com
127.0.0.1 internetdownloadmanager.com
127.0.0.1 www.internetdownloadmanager.com
127.0.0.1 secure.internetdownloadmanager.com
127.0.0.1 mirror.internetdownloadmanager.com
127.0.0.1 mirror2.internetdownloadmanager.com
127.0.0.1 mirror3.internetdownloadmanager.com


As a result, my eidted hosts file became as follows:
# 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

127.0.0.1 tonec.com
127.0.0.1 www.tonec.com
127.0.0.1 registeridm.com
127.0.0.1 www.registeridm.com
127.0.0.1 secure.registeridm.com
127.0.0.1 internetdownloadmanager.com
127.0.0.1 www.internetdownloadmanager.com
127.0.0.1 secure.internetdownloadmanager.com
127.0.0.1 mirror.internetdownloadmanager.com
127.0.0.1 mirror2.internetdownloadmanager.com
127.0.0.1 mirror3.internetdownloadmanager.com

However, although I didn't add '#', when I restarted my PC, then I found that '#' added in front of some of the 11 codes added recently to my hosts file
Except for:
127.0.0.1 tonec.com
127.0.0.1 www.tonec.com
127.0.0.1 internetdownloadmanager.com







I mean hosts file can be only edited for tricking use the IDM program and using it without even registering IDM on internet. Or Hosts file can be edited for other uses, such as there are other programs can be registered trickily by Playing with Hosts File
 


Any program with administrator privileges can edit the hosts file. Like I said above, some antivirus and antispyware programs will put a load of known malicious websites into your hosts file with bogus IP addresses which prevents you getting to them. It's possible that the Internet Download Manager program itself is now aware of that workaround and so is overwriting your attempts to edit the hosts file. I don't know. But if you set it and it's not staying as you set it, then another program is clearly tinkering with it.

I realise we're not being very helpful here, but to be honest I'm finding it quite difficult to understand exactly what you're asking.

Also, am I correct in thinking you are using this software without paying for it, and you're now trying to prevent it popping up and asking for money? If I'd realised that from the start I wouldn't have helped you at all. I believe it's against forum rules to provide support for hacks/mods/cracks which work around people having to pay for software they use. Their website says it's just $25. Can I suggest that rather than stuff around here, you just buy the software. That'll stop it popping up and bothering you and allow the developers to receive the money they've earned by designing a piece of software - if it's useful for you.
 
Status
Not open for further replies.