branding




General >> Hints and Tips

 |  Print Topic Pages: 1
darkness
new user


Reg'd: Mon
Posts: 22
Protect a PC with the HOSTS file
      #439696 - Wed Oct 07 2009 05:56 PM

Firstly, If you have Spybot - Search & Destroy your hosts file will already have entries in it. Do not change anything. You are already protected

The hosts file is a plain-text file and is traditionally named hosts, and is most often located at the path /etc/hosts. It contains the mappings of IP addresses to host names. This file is loaded into memory (cache) at startup, then Windows checks the Hosts file before it queries any DNS servers, which enables it to override addresses in the DNS. This prevents access to the listed sites by redirecting any connection attempts back to the local (your) machine.

The best bit about it is that you can also use a HOSTS file to block ads, banners, 3rd party Cookies, 3rd party page counters, web bugs, and even most hijackers. This is accomplished by blocking the connection(s) that supplies these little gems.

Example - the following entry 127.0.0.1 ad.doubleclick.net blocks all files supplied by that DoubleClick Server to the web page you are viewing. This also prevents the server from tracking your movements. Why? ... because in certain cases "Ad Servers" like Doubleclick (and many others) will try to open a separate connection on the webpage you are viewing.

Protect yourself using the host file. All the information is located on this website http://www.mvps.org/winhelp2002/hosts.htm . The host file is updated about once a month.

As with everything be careful.

Edited by darkness (Wed Oct 07 2009 06:10 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
darkness
new user


Reg'd: Mon
Posts: 22
Re: Protect a PC with the HOSTS file [Re: darkness]
      #439697 - Wed Oct 07 2009 05:58 PM

If anyone has got anything to add please feel free to do so.

--------------------
Be sure to back up everything. It always goes wrong when you least expect it.


Post Extras: Print Post   Remind Me!   Notify Moderator  
BurrWalnut
Chippendaler


Reg'd: Tue
Posts: 3729
Loc: England
Re: Protect a PC with the HOSTS file [Re: darkness]
      #439699 - Wed Oct 07 2009 06:46 PM

Here are a few more details to add to Darkness's post:

In XP, Vista and 7, it is normally located at C:\Windows\System32\Drivers\etc\ If it is not there, look at this registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath for its location.

In essence, the 127.0.0.1 at the beginning of each line stops access to the website listed alongside it, so if there are entries like 127.0.0.1 coolwebsearch.com, don’t remove them as they help to protect the system from malware sites. However, if you see entries with known names like webuser.co.uk or ibm.com you should remove them, as malware is trying to block access to them (127.0.0.1) or redirect them (n.n.n.n) to another website.

So:
127.0.0.1 NastySite.co.uk is a good entry
127.0.0.1 webuser.co.uk is a baddie
123.4.5.6 webuser.co.uk is a baddie

When attempting to make changes to it, you may be denied access as it could be read only. To make it accessible, right-click it > Properties and remove the Read-only attribute. Now make a backup copy of it before making changes.

You can delete all the entries but leave the line 127.0.0.1 localhost. Comment lines can be recognised by beginning with #. When saving it, make sure you select Save As without an extension, otherwise it will be given a .txt extension.

--------------------
The Chippendale Society


Post Extras: Print Post   Remind Me!   Notify Moderator  
darkness
new user


Reg'd: Mon
Posts: 22
Re: Protect a PC with the HOSTS file [Re: darkness]
      #439713 - Wed Oct 07 2009 08:06 PM

Thank you BurrWalnut

A much appreciated addition to this post

--------------------
Be sure to back up everything. It always goes wrong when you least expect it.


Post Extras: Print Post   Remind Me!   Notify Moderator  
ourstanley
regular


Reg'd: Sun
Posts: 8572
Loc: Yorkshire, England
Re: Protect a PC with the HOSTS file [Re: darkness]
      #439825 - Fri Oct 09 2009 02:11 PM

Better still IMHO is to install a hosts manager program such as HostsMan 3.1.57 which will not only add to your hosts file the current 'baddies' but will also allow you to edit, either by adding or deleting your own personal entries.
BTW the MVPS HOSTS file was updated yesterday. Thanks roddy32

--------------------
ESET Smart Security Maxthon Browser Calendar of Updates Malwarebytes Anti-Malware Glary Utilities Revo Uninstaller Secunia PSI Folding@home KeyScrambler RSSOwl HostsMan


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  AndrewC, Joe_London, bricat, putasolutions, Hello_There, John_McKenna, Mouse, TheFatControlleR, BenCJ 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website



Search

© Copyright IPC Media Limited 2009, All rights reserved