hosts icon indicating copy to clipboard operation
hosts copied to clipboard

Pihole - ignored 202935 non-domain entries

Open TheEngineerGuy opened this issue 1 year ago β€’ 10 comments

Is there something I am doing wrong, or maybe this is normal?

[i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [βœ“] Status: No changes detected
  [βœ“] Parsed 0 exact domains and 0 ABP-style domains (blocking, ignored 202935 non-domain entries)
      Sample of non-domain entries:
        - #\x20Title:\x20StevenBlack/hosts
        - #\x20This\x20hosts\x20file\x20is\x20a\x20merged\x20collection\x20of\x20hosts\x20from\x20reputable\x20sources,
        - #\x20with\x20a\x20dash\x20of\x20crowd\x20sourcing\x20via\x20GitHub
        - #\x20Date:\x2007\x20June\x202025\x2010:02:10\x20(UTC)
        - #\x20Number\x20of\x20unique\x20domains:\x20196,203

TheEngineerGuy avatar Jun 10 '25 00:06 TheEngineerGuy

This list is a hosts file, pihole is trying to read the comments section of the hosts file as domains and failing out

chrisjudk avatar Jun 10 '25 02:06 chrisjudk

That is what I thought, but then there are 200k comments and 0 domain matches?

That doesn’t sound right.

TheEngineerGuy avatar Jun 10 '25 02:06 TheEngineerGuy

@TheEngineerGuy

Ported this over using python to strip out the 0.0.0.0, localhost references, and # comments

https://raw.githubusercontent.com/chrisjudk/hosts/refs/heads/master/pihole/20250610_StevenBlack_hosts

Image

Hopefully it isn't a problem to post this here, my repo has multiple references to this one and is also published under MIT license

chrisjudk avatar Jun 10 '25 05:06 chrisjudk

I am facing the same issue. @TheEngineerGuy what OS are you on? I think pihole should be able to parse files like this. So I guess this is more of a problem with our pihole setups or an upstream pihole problem than a problem of this repo

leon-erd avatar Jun 10 '25 09:06 leon-erd

I am facing the same issue. @TheEngineerGuy what OS are you on? I think pihole should be able to parse files like this. So I guess this is more of a problem with our pihole setups or an upstream pihole problem than a problem of this repo

I am on latest, Debian GNU/Linux Bookworm (12).

I think this started recently for this specific list. Other lists seems to continue and work fine.

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  [βœ“] Status: No changes detected
  [βœ“] Parsed 34 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  [βœ“] Status: No changes detected
  [βœ“] Parsed 2701 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/black.list
  [βœ“] Status: No changes detected
  [βœ“] Parsed 16848 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt
  [βœ“] Status: No changes detected
  [βœ“] Parsed 429286 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://www.github.developerdan.com/hosts/lists/tracking-aggressive-extended.txt
  [βœ“] Status: No changes detected
  [βœ“] Parsed 171820 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt
  [βœ“] Status: No changes detected
  [βœ“] Parsed 16452 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

TheEngineerGuy avatar Jun 11 '25 14:06 TheEngineerGuy

@TheEngineerGuy

Ported this over using python to strip out the 0.0.0.0, localhost references, and # comments

https://raw.githubusercontent.com/chrisjudk/hosts/refs/heads/master/pihole/20250610_StevenBlack_hosts

That list worked much better.

  [i] Target: https://raw.githubusercontent.com/chrisjudk/hosts/refs/heads/master/pihole/20250610_StevenBlack_hosts
  [βœ“] Status: Retrieval successful
  [βœ“] Parsed 195841 exact domains and 0 ABP-style domains (blocking, ignored 362 non-domain entries)
      Sample of non-domain entries:
        - .hpyrdr.com
        - .creative.hpyrdr.com
        - docs.pipenv.org\x20#\x20https://github.com/StevenBlack/hosts/issues/1635
        - xvtelink.com\x20#\x20ads\x20with\x20redirects
        - invol.co\x20#\x20tracking

I wonder what changed to make the original list break. I had been using it for years now.

TheEngineerGuy avatar Jun 11 '25 15:06 TheEngineerGuy

@TheEngineerGuy

Ported this over using python to strip out the 0.0.0.0, localhost references, and # comments

https://raw.githubusercontent.com/chrisjudk/hosts/refs/heads/master/pihole/20250610_StevenBlack_hosts

That list worked much better.

  [i] Target: https://raw.githubusercontent.com/chrisjudk/hosts/refs/heads/master/pihole/20250610_StevenBlack_hosts
  [βœ“] Status: Retrieval successful
  [βœ“] Parsed 195841 exact domains and 0 ABP-style domains (blocking, ignored 362 non-domain entries)
      Sample of non-domain entries:
        - .hpyrdr.com
        - .creative.hpyrdr.com
        - docs.pipenv.org\x20#\x20https://github.com/StevenBlack/hosts/issues/1635
        - xvtelink.com\x20#\x20ads\x20with\x20redirects
        - invol.co\x20#\x20tracking

I wonder what changed to make the original list break. I had been using it for years now.

I feel this may be a pihole issue, but I'd have to look into it further to know for sure. Nonetheless, the code to parse the hosts file into a domain list now exists as a temporary solution anyone can use

chrisjudk avatar Jun 11 '25 19:06 chrisjudk

Thank you fpr oprning this issue @TheEngineerGuy and thank you for raising the issue with Pi-Hole Leon @leon-erd.

Closing!

StevenBlack avatar Jun 12 '25 15:06 StevenBlack

@TheEngineerGuy problem is fixed for me after upgrading to pihole-ftl 6.2.2 :)

leon-erd avatar Jun 14 '25 11:06 leon-erd

Thank you @leon-erd . I will try that this weekend.

TheEngineerGuy avatar Jun 14 '25 14:06 TheEngineerGuy