Jump to content
xisto Community
Sign in to follow this  
hazemmostafa

Disable Ads Using A Single Line Of Text very easy..... tested 2000 and XP

Recommended Posts

Hello ,

 

here is a simple text line to disable ads from any site :ph34r:

 

first locate this file -----> "hosts" in your system

 

here

 

C:\WINNT\SYSTEM32\DRIVERS\ETC

 

Or

 

C:\WINDOWS\SYSTEM32\DRIVERS\ETC

 

now right click this file and select open with , Notebad

 

then add this line at the end of the file

 

 

address of ads 127.0.0.1

 

How to find the address of ads ?

 

 

simple right <- snipped -> you want to disable click properties , the address is shown to you

 

example : __ spaces added for no clicks___

 

the ad url is h t t p: // a d s e r v e r .a d u l t f r i e n d f i n d e r . c o m

 

so the line will be

 

h t t p: // a d s e r v e r .a d u l t f r i e n d f i n d e r . c o m 127.0.0.1

 

save the file "hosts"

 

Done ..

 

Note :

 

some programs depend on ads like paltalk for black nicks -free-

so when you block ads from the program it will close automaticaly

 

simply if you find that disable a program ads close it open hosts again and remove the line

 

 

hope you like it .....}

Edited by hazemmostafa (see edit history)

Share this post


Link to post
Share on other sites

The HOSTS file does not exactly "block" anything out. It just redirects the user back to their computer (aka localhost). I think you got it the other way around there :)It should probably be something like this instead:127.0.0.1 http://forums.xisto.com/no_longer_exists/, if you try to go to your localhost (for those that have some kind of web server like environment with Apache, etc. installed), you will actually be redirected to that site you put before that 127.0.0.1 :ph34r:

Share this post


Link to post
Share on other sites

No problem hazemmostafa :ph34r:

For those that want an already modified HOSTS file to "block" out ads and other spyware related sites, get one at MVPS:

http://winhelp2002.mvps.org/hosts.htm

They update their HOSTS file frequently, so check back for updates. You can always add your own sites in the modified HOSTS if you like...just add it to the very end of beginning. When it comes time to get the updated one, just copy all your custom sites you added in first before replacing it with the newer HOSTS file. Then copy everything back to the new HOSTS file and save it.

Share this post


Link to post
Share on other sites

well some malicious programs use the host file to hijack your Internet browser but just doing the same thing. It modifies your host file and redirecting your browser to their intended site

Share this post


Link to post
Share on other sites

Yeah, if you want to block adservers at the network level, set up internet junkbuster or squid...both allow the use of regexes to block ads, so I could just block

/.*\/banners?\/.*\.(gif|jpg|jpeg)/
and that would block alot more than simple host blocking.

It also allows for blanket domain blocks, like
/.*\.adultfriendfinder\.com\/.*/
which would block EVERYTHING piece of trash from that site on the internet. Squid and junkbuster also have very fast regex engines and caching options, so you will see a marked improvement in site loading times.

Share this post


Link to post
Share on other sites

I'm using this 'trick' for several years and it realy rocks :) . I hardly see any ads anymore and the ads that I do see can be blocked using Opera or I just ignore them. Oh, and the trick works too in Vista B) .

Share this post


Link to post
Share on other sites

malicious programs use the host file to hijack your Internet browser

There are some programmes (ZoneAlarm, Spybot Search & Destroy) that can mark your hosts file as "read-only" so it cannot be modified so easily. I'm not sure if doing the same thing manually gives the same effect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.