Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 71

Thread: HOWTO: Amend your hosts file to block ads (by site)

  1. #31
    Join Date
    Aug 2010
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Smile Re: HOWTO: Amend your hosts file to block ads (by site)

    thanks. i am using script and works perfactly

  2. #32
    Join Date
    Feb 2011
    Beans
    411

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Uh, so just a heads up. I was trying to watch some flash videos on a web site, but for what ever reason the videos wouldn't play. After an hour or two of trying to figure out what the hell was wrong, out of desperation I put my hosts file back to normal, and come to find out the site had placed ad's in the beginning of the video feeds which the hosts file in turn was blocking.

    I was really enjoying the no ad's too.

    Did I have something set up wrong, or is there a work around for this?
    What I'm dealin' with:
    HP Pavilion G6-1D60US, dual booted: Ubuntu 16.04 64bit, & Windows 7 Home Premium 64bit, 640 gig HDD, 4 gig RAM

  3. #33
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by DGINSD View Post
    Uh, so just a heads up. I was trying to watch some flash videos on a web site, but for what ever reason the videos wouldn't play. After an hour or two of trying to figure out what the hell was wrong, out of desperation I put my hosts file back to normal, and come to find out the site had placed ad's in the beginning of the video feeds which the hosts file in turn was blocking.

    I was really enjoying the no ad's too.

    Did I have something set up wrong, or is there a work around for this?
    You can remove or comment out the offending host.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #34
    Join Date
    Feb 2011
    Beans
    411

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by bodhi.zazen View Post
    You can remove or comment out the offending host.
    How could I find out which one is causing the problem? The ad displayed was an AT&T ad, I inspected the element but was not smart enough to figure out where the ad was coming from.

    My concern is more and more sites will follow this model to counter ad block methods. The sites I was using to test Chargers.com and NFL.com and both had ads while the video loaded? Oddly enough once in a while the video would play but it was rather irregular.
    What I'm dealin' with:
    HP Pavilion G6-1D60US, dual booted: Ubuntu 16.04 64bit, & Windows 7 Home Premium 64bit, 640 gig HDD, 4 gig RAM

  5. #35
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by DGINSD View Post
    How could I find out which one is causing the problem? The ad displayed was an AT&T ad, I inspected the element but was not smart enough to figure out where the ad was coming from.

    My concern is more and more sites will follow this model to counter ad block methods. The sites I was using to test Chargers.com and NFL.com and both had ads while the video loaded? Oddly enough once in a while the video would play but it was rather irregular.
    Well if that is the case, you might prefer NoScript , Adblock Plus, and Request Policy (addons).

    If you inspect the elements, you will see (hopefully) "http://server.com"

    search your hosts file for "server.com"
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #36
    Join Date
    Feb 2011
    Beans
    411

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Will those addins work in any browser, I use Chromium as my default instead of Firefox. If so how do I go about getting them?
    What I'm dealin' with:
    HP Pavilion G6-1D60US, dual booted: Ubuntu 16.04 64bit, & Windows 7 Home Premium 64bit, 640 gig HDD, 4 gig RAM

  7. #37
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by DGINSD View Post
    Will those addins work in any browser, I use Chromium as my default instead of Firefox. If so how do I go about getting them?
    Some of those addins are available for chormium yes, some not.

    You will need to learn to manage your hosts file , that is the downside of this technique.

    Open the file in gedit and search or use tools such as grep , sed, awk to automate the process.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  8. #38
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Post Re: HOWTO: Amend your hosts file to block ads (by site)

    Here's a hosts file I'd like to contribute to every one.

    It's a combination of 12 up-to-date(as of this moment) lists that block ads and sites with malwares(viruses, trojans, worms etc.)

    MAKE SURE YOU COPY THE ENTIRE FILE TO etc/hosts using root or sudo.

    _DO NOT_ REPLACE THE FIRST TWO LINES IN YOUR HOSTS FILE-

    127.0.0.1 localhost
    127.0.1.1 YOUR HOST NAME GOES HERE


    If you already have blocking entries, add this list to the bottom of your hosts file.



    http://ubuntuone.com/p/13J6/

    -Chuck

  9. #39
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Amend your hosts file to block ads (by site)

    September 16, 2011 HOSTS file.


    This is a combination of 12 up-to-date(as of this moment) lists that block ads and sites with malwares(viruses, trojans, worms etc.)

    MAKE SURE YOU COPY THE ENTIRE FILE TO etc/hosts using root or sudo.

    _DO NOT_ REPLACE THE FIRST TWO LINES IN YOUR HOSTS FILE-

    127.0.0.1 localhost
    127.0.1.1 YOUR HOST NAME GOES HERE


    If you already have blocking entries, add this list to the bottom of your hosts file.


    September 16th, 2011 HOSTS file link:

    https://ubuntuone.com/6MVhZn91mwKeIvUoJl0CbK

  10. #40
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Exclamation Re: HOWTO: Amend your hosts file to block ads (by site)

    November 4, 2011 HOSTS file.


    This is a combination of 12 up-to-date(as of this moment) lists that block ads and sites with malwares(viruses, trojans, worms etc.)

    The file is optimized, sorted & is in 0.0.0.0 format.

    MAKE SURE YOU COPY THE ENTIRE FILE TO /etc/hosts using root or sudo.

    _DO NOT_ REPLACE THE FIRST TWO LINES IN YOUR HOSTS FILE-

    127.0.0.1 localhost
    127.0.1.1 YOUR HOST NAME GOES HERE


    If you already have blocking entries, add this list to the bottom of your hosts file.


    November 4, 2011 HOSTS file link:

    http://ubuntuone.com/4o5KKT545F9M4WZUpKO7PB



    Side note- You might want to install an ad-blocking extension in your browser so you don't see the annoying "page not found" error where ads were before.

Page 4 of 8 FirstFirst ... 23456 ... LastLast

Bookmarks

Posting Permissions

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