Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
I found this on the Debian forum. Just add these lines to /etc/hosts: 127.0.0.1 doubleclick.net 127.0.0.1 ad.doubleclick.net 127.0.0.1 ad.ca.doubleclick.net 127.0.0.1 adremote.timeinc.net 127.0.0.1 adsremote.scripps.net 127.0.0.1 a.as-us.falkag.net 127.0.0.1 interclick.com 127.0.0.1 a1.interclick.com 127.0.0.1 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,206

    A crafty way to get rid of ads


    I found this on the Debian forum. Just add these lines to /etc/hosts:

    127.0.0.1 doubleclick.net
    127.0.0.1 ad.doubleclick.net
    127.0.0.1 ad.ca.doubleclick.net
    127.0.0.1 adremote.timeinc.net
    127.0.0.1 adsremote.scripps.net
    127.0.0.1 a.as-us.falkag.net
    127.0.0.1 interclick.com
    127.0.0.1 a1.interclick.com
    127.0.0.1 media.fastclick.net
    127.0.0.1 network.realmedia.com127.0.0.1 doubleclick.net

    These are apparently the sites responsible for most of the rubbish that appears in browsers; redirect them to your own machine and the inserts disappear. It certainly works on this forum.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,037
    Thanks Hazel. Trying it out in AntiX on Iceweasel and Firefox . Seems to work ok here just like you said. Again Thanks.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    11
    Ya know that does make sense. I might try it as I've been on a few sites lately that take for EVER for ad.doubleclick.net to load.

    I was also considering blocking the URLs for these in my DDWRT router at home. Might make it load times substantially quicker.

    I add this to /etc/hosts ?

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    That's pretty cool, could be handy for routers and mobile devices too. Hazel have you come across the Adblock Plus plugin for Firefox? It's a pretty slick filter for ads, it even comes with a subscription to get the latest list of domains to block. IT makes the internet look the way it should

  5. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    I have been doing this for some years now and have a large list of ads sites in my hosts file. I thought everyone knew how to do this.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  6. #6
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    Quote Originally Posted by Lazydog View Post
    I have been doing this for some years now and have a large list of ads sites in my hosts file. I thought everyone knew how to do this.
    could you post the list?

  7. #7
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,206
    Quote Originally Posted by bigtomrodney View Post
    That's pretty cool, could be handy for routers and mobile devices too. Hazel have you come across the Adblock Plus plugin for Firefox? It's a pretty slick filter for ads, it even comes with a subscription to get the latest list of domains to block. IT makes the internet look the way it should
    Yes, I use adblock too. But I don't often use firefox in Debian because it starts up very slowly; I prefer Kazehakase. The beauty of this approach is that it works with all browsers.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  8. #8
    Linux Enthusiast cousinlucky's Avatar
    Join Date
    Dec 2005
    Location
    New York City
    Posts
    676
    Will they work in Ubuntu 8.04??
    PCLinuxOS Gnome and PCLinuxOS Mate
    Linux user # 414321
    You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
    Everything Within The Universe Is Related; We Are All Cousins!!

  9. #9
    Linux User
    Join Date
    May 2009
    Location
    Big River, Sask, Canada
    Posts
    342
    They should work in any linux distribution, Cousin Lucky.
    Registered Linux User #420832

  10. #10
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Ask and you shall receive.
    Here you are, HOSTS.
    There is somewhere around 800 entries in this list.
    I haven't had any ad problems with this list and now I use adblock plus in firefox.

    I tried to post a file but for some reason it kept on spitting out an error, not sure why.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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