hosts file blocking, how do I identify the ad that I want to unblock


Recommended Posts

I have a question, I use hosts file blocking on my PC but sometimes it blocks ads and then breaks functionality. Especially with video's on news/tech sites that nowadays always have ads before the actually video starts playing. If the hosts file blocks this video ads you just see a black screen and you are not able to watch the video at all.  Now I use the app hostsman to temporarly disable the hosts file if I really want to see the video. But its a hassle anyway... I wonder if there are 'smart' ways to identify which adserver I need to delete from the hosts file so I will be able to use it with my most visited websites where it breaks the functionality.

 

I use windows 8.1 x64 with firefox browser. I also have the same problem on my rooted android xperiaS smartphone on which I use adaway (a hosts file adblocker for android)

Well, I will recommend you to use Firefox Developer Tools (DOM Explorer or Inspect Tool) to see Ads URLs or if its later start on Video play then Firefox Developer Tools (Network Tab).

 

Then see matching filter in Host file and make them "Comment" one by one, on certain filter if video plays without breaking functionality, its that particular filter you want to nuke. Make previous "Comment" URLs back to normal.

 

127.0.0.1 www.example.com

Then do this one by one:

# 127.0.0.1 www.example.com

 

Though I will not personally recommend HOST file blocking method, you should switch to Adblock Plus etc alternatives.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • You are mostly right about the ephemeral nature of it. As I mention in the article, if you dont add a second device or take a backup of your account before uninstalling it, then yes you will lose access to your account. That said, in terms of actual user experience when you sync multiple devices your message history carries across and there's also a Saved Messages chat like there is on Telegram to send messages and attachments between your installs. But yh, what you point out are correct and its not trying to emulate Messenger or Telegram.
    • OK so SearXNG is a meta search engine that you can install locally or use via a public instance. It scrapes other search engines which you choose and then sorts the results. Not as complicated as multiple relays
    • The only difference here is that you think you came up with these reasons. You didn't. These age old fearmongering lies (that were NEVER true) were funded by and the anger stoked by Putin through proxies like Farage (and later in the USA, Trump) and filtered down through the skinheads, Neonazis, etc. until it reached the uninformed, ignorant, and gullible -- never realizing they were being played for fools against their own best interests. Even now, despite all of the EVIDENCE proving that Brexit was a terrible mistake for ALL citizens of the UK and that its supporters were tricked by Putin's proxies into sabotaging their own nation, you're still here defending these well-known lies as if they were ever true. Not only are they not true. They NEVER were. So, when are you going to realize that you were lied to and actually get angry at the liars and charlatans who lied to you, instead of blaming the innocent people they lied to you about?
    • Dupe of "Microsoft further improving Windows 11 Taskbar with latest builds", published <20 minutes apart
    • Dupe of "Windows 11 is getting redesigned taskbar settings in new build", published <20 minutes apart
  • Recent Achievements

    • Week One Done
      flexorcist earned a badge
      Week One Done
    • One Month Later
      Woland13 earned a badge
      One Month Later
    • Week One Done
      Woland13 earned a badge
      Week One Done
    • One Year In
      bernmeister earned a badge
      One Year In
    • Week One Done
      Scoobystu earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      +Edouard
      225
    3. 3
      PsYcHoKiLLa
      152
    4. 4
      Steven P.
      75
    5. 5
      FloatingFatMan
      71
  • Tell a friend

    Love Neowin? Tell a friend!