blocking - Block ONLY Google Ads

06
2014-04
  • Bálinth István

    There is an easy way to disable ONLY ads by Google (like this: https://p1.picsto.re/2013-10-06_111448.png )? Using hosts file (I hate Adblock or other bloatware tools) is quite easy but what are the lines which block Google ads? After some time spent with searching, just didn`t find any usable information. Thx

  • Answers
  • Darius

    Unless you are willing to research what advertising company and URL that google used, there is no really "easy" way to do it. You are doing a targeted block against a certain advertising company, so basically you need to know some wildcard address that Google uses (say one example I happen to know on top of my head is .adwords. which is owned by Google).

    Adblock / AdblockPlus has done the research, and prepared the blocking on your behalf.


  • Related Question

    windows xp - Blocking a game on XP with the hosts file
  • greyDrifter

    In the Windows XP hosts file (C:\windows\drivers\etc\hosts) replaces the mnemonic format with an ip address locally before talking to the dns. Previously, I have used the four slots for hosts and keywords in a linksys router wrt54gs; which is very limiting. The segment below has been designed to block the game Adventure Quest with hosts collected from Fiddler2.

    • How can this segment be consolidated and/or is there a better way to block this game?
    • Does the host "battleon.com" differ from the host "www.battleon.com"?
    • Can hosts reference a subdirectory "dragonfable.battleon.com/game/"?
    • Can hosts reference a specific page?
    • Is there a better way, have I errored, and any suggestions?

    # BattleOn (Adventure Quest);
    
    127.0.0.1 battleon.com
    127.0.0.1 www.battleon.com
    127.0.0.1 battleon.com/aq-play.asp # ? specific asp page
    127.0.0.1 aq.battleon.com
    127.0.0.1 banners.battleon.com
    127.0.0.1 dragonfable.battleon.com
    127.0.0.1 dragonfable.battleon.com/game/ # ? subdirectory
    127.0.0.1 guardian.battleon.com
    127.0.0.1 media.battleon.com
    127.0.0.1 forums.battleon.com
    127.0.0.1 forums1.battleon.com
    127.0.0.1 forums2.battleon.com
    127.0.0.1 video.battleon.com
    127.0.0.1 adlegend.com
    127.0.0.1 ad.adlegend.com
    127.0.0.1 cpmstar.com
    127.0.0.1 cdn.cpmstar.com
    127.0.0.1 server.cpmstar.com
    127.0.0.1 scorecardresearch.com
    127.0.0.1 beacon.scorecardresearch.com
    127.0.0.1 quantserve.com
    127.0.0.1 edge.quantserve.com
    127.0.0.1 pixel.quantserve.com
    

  • Related Answers
  • David Pearce
    • How can this segment be consolidated and/or is there a better way to block this game?

    Without using third party software, not really. The advantage of this method is that the hosts files can most probably be copied over to a completely different operating system.

    • Does the host "battleon.com" differ from the host "www.battleon.com"?

    I think so. They are two different domains.

    • Can hosts reference a subdirectory "dragonfable.battleon.com/game/"?
    • Can hosts reference a specific page?

    No. The .hosts file is meant to be a local 'replacement' for DNS systems. They will only look up the domain name, hence you can only block domains using a .hosts file, not paths.

    • Is there a better way, have I errored, and any suggestions?

    As I mentioned before, .hosts files are native and the same to pretty much any modern operating system. You could opt for some third part filtering software, but they can be expensive and possibly a bit too confusing.

  • Dan Walker

    Does the host "battleon.com" differ from the host "www.battleon.com"?

    No.

    Can hosts reference a subdirectory "dragonfable.battleon.com/game/"?

    No.

    Can hosts reference a specific page?

    No.

    All you can do here is block the computer from being able to contact specific hosts. Not directories or pages on a particular website. In order to do that you will need to use your router, or specialized blocking hardware or software.

  • Matthew Lock

    have a look at trusty old Proxomitron, still one of the finest and most efficient web filters.

    at Sidki's page you'll find a well maintained up-to-date configuration file.

  • Benjamin Schollnick

    Blocking a web site, or domain this way works... But it's all or nothing.

    And second, anyone that has any technical ability will check the host file. I hope this user isn't an Administrator, or have SuperUser rights...

    The host file is easy to modify, and even easier to fix from this kind of damage....