OprekPC.com Forum Index
  Modifikasi - Tweak - Overclock      Search      Memberlist      Album
  · Log in Register · Profile · Log in to check your private messages · Usergroups  
             
 Announcement 
saat ini anda sudah bisa menikmati layanan RSS Feed di forum OprekPC.selamat bergabung dengan kami melalui offline mailing news.

Previous topic «» Next topic
HOSTS yaab (yet another ad blocker)
Author Message
xaviero 
Ensign


Helped: 12 times
Age: 29
Joined: 17 Apr 2005
Posts: 1653
Posted: Wed May 24, 2006 2:25 pm   HOSTS yaab (yet another ad blocker)

At first, sorry for my broken rujak english... :D , and thanks for MAS for your inspiration and suggestion. :wink:

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

just like that.

references:
http://www.mvps.org/winhelp2002/hosts.htm
http://en.wikipedia.org/wiki/Hosts_file

_________________
sebelum transaksi, baca dulu :
ID seller/buyer
Bad seller/buyer
Good seller/buyer
Buat yang lagi nyari inspirasi
Nyari gadget ?
__ ___ _ _
\ \/ <_>|| | |
/\_\ <___||__/
 
 
OprekPC Ads
MAS 
Juru Kunci


Helped: 71 times
Age: 41
Joined: 16 Jan 2005
Posts: 14575
Location: Jakarta-Purwokerto PP
Posted: Wed May 24, 2006 6:42 pm   

goood bro...satu tambahan klo mau ngeblok adsense google tambahkan ini

Code:
127.0.0.1 pagead.googlesyndication.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 adservices.google.com
127.0.0.1 adservices.google.com


hope its work...rada berat jg sih klo ndak di blok...

_________________


Supported my new project!
my BB PIN : 259905b9
 
 
balthaZor 
Moderator



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 7:24 pm   

wew.. double threads neh.. :mrgreen:

[know how] Windows HOSTS file
http://www.oprekpc.com/forum/viewtopic.php?t=4292

thanks anyway..

_________________

Sempatkan copas URL sumber jika mengutip artikel orang lain..
20090831 SnowLeopard on Abit IP35-E | Intel C2D E6850 | 9600GT
 
 
xaviero 
Ensign


Helped: 12 times
Age: 29
Joined: 17 Apr 2005
Posts: 1653
Posted: Fri May 26, 2006 10:03 pm   

waks.... :shock:

maap, ga tau , ternyata sudah ada toh threadnya....
kalo mo diapus, monggo mas :oops: jadi malu.... maklum rookie banget, baru bisa belajar ngping :oops:

_________________
sebelum transaksi, baca dulu :
ID seller/buyer
Bad seller/buyer
Good seller/buyer
Buat yang lagi nyari inspirasi
Nyari gadget ?
__ ___ _ _
\ \/ <_>|| | |
/\_\ <___||__/
 
 
balthaZor 
Moderator



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.. :thumbleft:

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

_________________

Sempatkan copas URL sumber jika mengutip artikel orang lain..
20090831 SnowLeopard on Abit IP35-E | Intel C2D E6850 | 9600GT
 
 
OprekPC Ads
Your Ad Here
tula 
Oprek Rookie


Joined: 06 Nov 2005
Posts: 1006
Posted: Tue May 30, 2006 11:13 am   

HELLLLphhhhet ....

aku uda coba smua cara diatas .. tp kok tetep load google adsyn ya di kakus ? (maaf kalo sala ketik gogle nya)

trus ada iklan2 sebagian jg yg masi nongol .. tp ini betulnya utk topic yg ilangin iklan nya punya mas MAs .. tp digabung ajaya hehehehehe >.< ...

ini conto iklan yg nongol ...

http://i38.photobucket.co...et/adbandel.gif

 
 
balthaZor 
Moderator



Helped: 57 times
Joined: 25 Jan 2005
Posts: 8920
Location: 6 12 16.05 S 106 50 43.22 E
Posted: Tue May 30, 2006 12:37 pm   

di gw iklannya udah ilang kok.

di file hosts udah ngetikin ini?
Code:
127.0.0.1   localhost
127.0.0.1   pagead.googlesyndication.com
127.0.0.1   pagead2.googlesyndication.com
127.0.0.1   adservices.google.com

ikaln mana lagi yg pengin diblok?
kasih linknya & skrinsut trus tandain.

_________________

Sempatkan copas URL sumber jika mengutip artikel orang lain..
20090831 SnowLeopard on Abit IP35-E | Intel C2D E6850 | 9600GT
 
 
Display posts from previous:   
Reply to topic
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
Add this topic to your bookmarks
Printable version

Jump to:  



Powered by phpBB modified by Przemo © 2003 phpBB Group
Template modified by Mich@³
Customized by OprekPC @ 2007
Page generated in 1.14 second. SQL queries: 16
OprekPC.com topic RSS feed