Results 1 to 3 of 3

Thread: Can I allow ads everywhere except for 2 websites using hosts file? What's possible?

  1. #1
    Join Date
    Apr 2009
    Beans
    Hidden!

    Can I allow ads everywhere except for 2 websites using hosts file? What's possible?

    I don't use an ad-blocker. In fact I don't use any method for blocking ads at all. I'm subjected to ads daily. There are two websites that I want to block ads on. Only two websites. I want to see ads on every other website. These two websites use third-party ad networks. Can I use the hosts file to only allow connections from those two domains and reject all other URLs coming from those two domains. Is that possible? I use these websites daily. Please don't suggest I use another website, one of them is my hometown newspaper. The local paper I absolutely need access too, and the other I suppose I could replace, but then, where would the sense of victory be over the ad network.

  2. #2

    Re: Can I allow ads everywhere except for 2 websites using hosts file? What's possib

    Add this to the bottom of your hosts file:

    Code:
    127.0.0.1 name-of-first-ad-website
    127.0.0.1 name-of-second-ad-website
    Remove http:// or https:// from the url and anything after .net .com, etc. so www.notarealadwebsite.com is fine, but lose the https:// (note, that does not go to a real website.)
    Last edited by freemedia2018; 1 Week Ago at 09:32 PM.

  3. #3
    Join Date
    Apr 2009
    Beans
    Hidden!

    Re: Can I allow ads everywhere except for 2 websites using hosts file? What's possib

    Quote Originally Posted by freemedia2018 View Post
    Add this to the bottom of your hosts file:

    Code:
    127.0.0.1 name-of-first-ad-website
    127.0.0.1 name-of-second-ad-website
    Remove http:// or https:// from the url and anything after .net .com, etc. so www.notarealadwebsite.com is fine, but lose the https:// (note, that does not go to a real website.)
    Great, thank you!

Tags for this Thread

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
  •