Posted: Wed May 24, 2006 2:25 pm HOSTS yaab (yet another ad blocker)
At first, sorry for my broken rujak english... , and thanks for MAS for your inspiration and suggestion.
What is HOSTS ?
The Hosts file contains the mappings of IP addresses to host names.
HOW ITS WORKING?
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 machine.
What we talking about here is feature of the HOSTS file.
Its ability to block other applications from connecting to the Internet, providing the entry exists. Such as, ads pop-up, banner, hijacking etc.
first, check your hosts file location:
Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC
Win 98/ME = C:\WINDOWS
you can open it with notepad or another text editor program.
here its the code :
# Copyright (c) 1993-1999 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
127.0.0.1 localhost
and here is another code that i blocked in my winbox.
#127.0.0.1 123counter.mycomputer.com
#127.0.0.1 123counter.superstats.com
#127.0.0.1 1ca.cqcounter.com
#127.0.0.1 1uk.cqcounter.com
#127.0.0.1 1us.cqcounter.com
#127.0.0.1 2001-007.com
#127.0.0.1 4-counter.com
#127.0.0.1 abscbn.spinbox.net
#127.0.0.1 activity.serving-sys.com #eyeblaster.com
#127.0.0.1 ad-logics.com
#127.0.0.1 adclient.rottentomatoes.com
#127.0.0.1 adcodes.aim4media.com
#127.0.0.1 adcounter.globeandmail.com
#127.0.0.1 adcounter.theglobeandmail.com
#127.0.0.1 addfreestats.com
#127.0.0.1 adlog.com.com # Used by Ziff Davis to serve
# ads and track users across
#127.0.0.1 n3349ad.doubleclick.net
#127.0.0.1 n479ad.doubleclick.net
#127.0.0.1 optimize.doubleclick.net
#127.0.0.1 rd.intl.doubleclick.net
#127.0.0.1 uunyadgda1.doubleclick.net
#127.0.0.1 uunyadgds1.doubleclick.net
so, there is a mysterious code. like this (example loh)
127.0.0.1 uunyadgda1.doubleclick.net
here is the code for ad pop-up. you disable it by adding "#" symbol in front of the code,so windows can by-pass this code at booting first time.
just like that simple. Turns to
#127.0.0.1 uunyadgda1.doubleclick.net
or we can use other way to block (differ it with by-pass) the ad-site.
example
127.0.0.1 uunyadgda1.doubleclick.net
turn to
0.0.0.0 uunyadgda1.doubleclick.net
or
0 uunyadgda1.doubleclick.net
or if want to block ad-sense google
0.0.0.0 pagead.googlesyndication.com
0.0.0.0 pagead2.googlesyndication.com
0.0.0.0 adservices.google.com
simple isn't it?
in case if your hosts file, larger than 135KB , it could slow down your browser. than here is the way
Goto your console, cmd prompt in windows.
then type
C:\>sc config DNSCache start= disabled
C:\>sc stop DNSCache
above command is to disabled DNScache, if you want to reset, chane the start=disabled to start=demand
Helped: 57 times Joined: 25 Jan 2005 Posts: 8920 Location: 6 12 16.05 S 106 50 43.22 E
Posted: Fri May 26, 2006 10:16 pm
ya gak dihapus lah.. cukup di-merge aja.
postinganmu malah lebih lengkap..
xaviero wrote:
first, check your hosts file location:
Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC
Win 98/ME = C:\WINDOWS
in case if your hosts file, larger than 135KB , it could slow down your browser. than here is the way
Goto your console, cmd prompt in windows.
then type
C:\>sc config DNSCache start= disabled
C:\>sc stop DNSCache
above command is to disabled DNScache, if you want to reset, chane the start=disabled to start=demand
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum