Proper layout for blacklist

I am curious about what the proper layout is for a blacklist. I see some of them (lets take SmokingWheels for example) has either 0.0.0.0 (any) or 127.0.0.1 (loopback) infront of all of his entries. I see some others have neither any or loopback on theirs... What gives?

They are all proper. With minor exceptions though.
Those lists can be uses in different places for instance, windows hosts file ...

When updating gravity, pi-hole is stripping all the un-needed information and saves only the host names.

That's the one part that gets compared on query (via pi-hole).

If you want to add your own list, you can add host-names only, on separate lines.

Ah, that makes sense. Do you know if its possible to pull the "true" list that pi-hole sees ramset?

list is under

/etc/pihole/gravity.list

and it's formatted like this:

your.pi.hole.ip hosnametobeblocked

it's similar to the 127.0.0.1 one the only thing different is that the 127.0.0.1 is replaced by your pi-hole ip and the list is compiled out of all the adblock sources (with duplicates removed).

2 Likes