Results 1 to 18 of 18

Thread: Stop ads w/ HOSTS File

  1. #1
    spetnik
    Guest

    Stop ads w/ HOSTS File

    stop ads from showing up in your browser by appending this text to your HOSTS file (located in windows directory). You won't believe how this will increase download speed on a dial-up modem.
    feel free to post any more hosts that i missed:
    Code:
    127.0.0.1	       ads.msn.com
    127.0.0.1	       adex3.flycast.com
    127.0.0.1	       view.avenuea.com
    127.0.0.1	       servedby.advertising.com
    127.0.0.1	       media.fastclick.com
    127.0.0.1	       global.msads.net
    127.0.0.1	       exitstitial.gopher.com
    127.0.0.1	       server2007.virtualave.net
    127.0.0.1	       ads.web.aol.com
    127.0.0.1	       popup.msn.com
    127.0.0.1	       ads.x10.com
    127.0.0.1	       a1964.g.akamai.net
    127.0.0.1	       sprfetch.about.com
    127.0.0.1	       adpop.theglobe.com
    127.0.0.1	       adcontroller.unicast.com
    127.0.0.1	       sprinks.about.com
    127.0.0.1	       media.admonitor.net
    Appending this to your HOSTS file will tell your browser that when downloading from these locations, goto 127.0.0.1 (your local machine) instead of downloading off the web. This way it only downloads the content you wish to see

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Will it not waste time looking for an ad that isn't on localhost?
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    spetnik
    Guest
    it shouldnt. but even if it does, that is not using your modem's bandwidth, so the page will continue loading.

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    do you mean hosts.sam in Win dir Spetnik?

  5. #5
    spetnik
    Guest
    hosts.sam is the sample file. HOSTS is the actual file. If it does not exist, create it.

  6. #6
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Originally posted by spetnik
    it shouldnt. but even if it does, that is not using your modem's bandwidth, so the page will continue loading.
    Ah, MODEM, those were the good old days. 14.4, 9600... yeah... don't have one of them.

    I was in an apartment with a T1, but now I'm moving into a house with a cable MODEM. Cuts my speed nearly in half. And I lose my static IP since I have Time "Rape 'em in the Ass" Warner.

    I'll have to play around with the host file, but I think it will slow me down since it will have to wait for a timeout from localhost: "Hey, I ain't got your ads."

    'Course, removing ads is a virtue in and off itself, but if you want speed: Opera!!! I'm telling you, we need to all get behind it and make sure it is stable, standard, and bug free.

    Pay the extra money and you can get the version without the add, or just run full screen.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  7. #7
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Better tip:

    Disable JavaScript and you won't get anymore ads / poups / frames / banners

  8. #8
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Heh... it doesn't slow me down.

    But I wouldn't disable JavaScript. JavaScript is a good technology, some people just use it for evil.

    I wonder if there is a DB of ad sites kind of like the open relay DBs.

    I wonder how long it will take sites like ads.msn.com to just use www.msn.com/ads.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  9. #9
    spetnik
    Guest
    yes u will still get reg. banners
    and... i use javascript for other things, so its not very practical

  10. #10
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    well me too, I just add these sites to the lower security list

  11. #11
    spetnik
    Guest
    but how do u stop regular banner ads that are just <img> tags?

  12. #12
    denniswrenn
    Guest
    hook the browser, get the content of the html page, check if the image between <img> is evil(an ad), if so, then just remove that line, and send the page back to the browser! Simple 'nuff

  13. #13
    spetnik
    Guest
    right, dennis. Thats great. You know what? I think I want another useless app running. I mean, I sometimes have a whole 5 minutes where I don't crash. Lemme use a hook app. That way I'll crash every 3 minutes. Perfect.


  14. #14
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    by CiberThug
    Man, sarcasm is so deep you could float a VB Coder's ego in here.

  15. #15
    Jethro
    Guest

    Wink

    Ok fine, but how do l keep all the adds except for the nuddy photo sites from popping up.

  16. #16
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033
    I might just have a little TOO much fun with this one!

    Thanks spetnik i never knew you could do that!
    I'm bringing geeky back...

  17. #17
    spetnik
    Guest
    Originally posted by Jethro
    Ok fine, but how do l keep all the adds except for the nuddy photo sites from popping up.
    use my new COM object:

    VB Code:
    1. Dim objPicCheck As nudePhotoChecker
    2.    
    3.     Set objPicCheck = nudePhotoChecker
    4.  
    5.     For Each pic In pornSiteWindow.Pictures
    6.         If objPicCheck.isHot (pic) Then
    7.             pic.Visible = True
    8.         Else
    9.             pic.Visible = False
    10.         End If
    11.     Next

  18. #18
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Wow, I'm being quoted cross-threads.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width