Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. HOSTS file

HOSTS file

Scheduled Pinned Locked Moved System Admin
questioncomlinuxhelp
5 Posts 4 Posters 17 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #1

    I use the HOSTS file to block ad sites. I've recently encountered a few that don't seem to be affected. deals.slashdot.org tracking.deltadefense.com When I ping them, I'm told the site can't be reached/doesn't exist, but when I browse to a site that contains ads from these sites, the ads are displayed. Why is this happening, and how can I fix it? BTW, this happens on Linux and Windows boxes.

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    L Richard Andrew x64R Richard DeemingR 3 Replies Last reply
    0
    • realJSOPR realJSOP

      I use the HOSTS file to block ad sites. I've recently encountered a few that don't seem to be affected. deals.slashdot.org tracking.deltadefense.com When I ping them, I'm told the site can't be reached/doesn't exist, but when I browse to a site that contains ads from these sites, the ads are displayed. Why is this happening, and how can I fix it? BTW, this happens on Linux and Windows boxes.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Might be configured to not reply to a ping. Use fiddler to find out from which domain the ads are served, doubt that they're the same. Once you have that adres, add it to your host-file.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

      1 Reply Last reply
      0
      • realJSOPR realJSOP

        I use the HOSTS file to block ad sites. I've recently encountered a few that don't seem to be affected. deals.slashdot.org tracking.deltadefense.com When I ping them, I'm told the site can't be reached/doesn't exist, but when I browse to a site that contains ads from these sites, the ads are displayed. Why is this happening, and how can I fix it? BTW, this happens on Linux and Windows boxes.

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        You could try flushing your DNS cache with the command "ipconfig /flushdns". The DNS entries may be cached from a time before you added those domains to your HOSTS file.

        The difficult we do right away... ...the impossible takes slightly longer.

        realJSOPR 1 Reply Last reply
        0
        • Richard Andrew x64R Richard Andrew x64

          You could try flushing your DNS cache with the command "ipconfig /flushdns". The DNS entries may be cached from a time before you added those domains to your HOSTS file.

          The difficult we do right away... ...the impossible takes slightly longer.

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          Tried it before posting my original msg.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

          1 Reply Last reply
          0
          • realJSOPR realJSOP

            I use the HOSTS file to block ad sites. I've recently encountered a few that don't seem to be affected. deals.slashdot.org tracking.deltadefense.com When I ping them, I'm told the site can't be reached/doesn't exist, but when I browse to a site that contains ads from these sites, the ads are displayed. Why is this happening, and how can I fix it? BTW, this happens on Linux and Windows boxes.

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

            Richard DeemingR Offline
            Richard DeemingR Offline
            Richard Deeming
            wrote on last edited by
            #5

            The DNS entries might be cached by your browser. How to clear the DNS Cache? – OpenDNS[^] Or your browser might be configured to use DoH[^], which would completely ignore your HOSTS file.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups