freedomdwarf1
Posts: 6845
Joined: 10/23/2012 Status: offline
|
For most things, I noticed you need the WWW bit as well. Because if Windows has to use the resource locator, that means it's looking it up via the 'net. By that time, it's too late. The whole trick is to tell Windows not to look for the URL but to resolve it locally within the DNS. However, a lot will depend on how the site is referenced from the source HTML/script. For some (like 'adrotator.se'), that's how it is usually called and Windows sees the match and will act on it. But to make sure with some things (like Bing), the whole site address is needed. Scrappy thing like Google-analytics was a tricky one for me. Sometimes it resolved to the .COM site. Other times, the site coding was clever and re-routed it to the UK entry point because I'm in the UK. So I have them both in my hosts file - just to be doubly sure. Oh, and don't forget the ::1 entry if you are using IPv6. If the normal IPv4 doesn't resolve the DNS reference, it'll use IPv6 if you have it installed. This is my current hosts file # 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 # Misc blocks - 127.0.0.1 google-analytics.com 127.0.0.1 google-analytics.co.uk 127.0.0.1 main.exoclick.com 127.0.0.1 www.medleyads.com 127.0.0.1 adrotator.se 127.0.0.1 britmethod.com 127.0.0.1 kaboomit.com 127.0.0.1 www.s-static.ak.facebook.com 127.0.0.1 www.static.ak.facebook.com 127.0.0.1 bid.g.doubleclick.net 127.0.0.1 ad.doubleclick.net 127.0.0.1 ib.adnxs.com 127.0.0.1 a.tribalfusion.com 127.0.0.1 d.adroll.com 127.0.0.1 googleads.g.doubleclick.net 127.0.0.1 www.meetlocals.com 127.0.0.1 www.skybet.com 127.0.0.1 www.market-buster.com 127.0.0.1 www.ad2serv.com 127.0.0.1 protect-your-privacy.net 127.0.0.1 www.bing.com 127.0.0.1 trk.ablogica.com 127.0.0.1 www.bet365.com 127.0.0.1 www.tradeadexchange.com 127.0.0.1 www.olderiswiser.com 127.0.0.1 clik6.com 127.0.0.1 www.50connect.co.uk 127.0.0.1 www.cbronline.com
_____________________________
“If liberty means anything at all, it means the right to tell people what they do not want to hear.” George Orwell, 1903-1950
|