Best format for adlists/blocklist

Hello everyone,
I don't have any bugs I just want to know the best format to use for Adlists. I know that this have already been discussed many times but I'm a little lost. From what I understand pihole can use both format :
0.0.0.0 example.com
Or just example.com

So if I have one adlist test1.txt containing 0.0.0.0 example1.com
And a second Adlists test2.txt containing example 2.com
I think that it will block both example domains.

My final question is if pihole remove 0.0.0.0 or whatever from Adlists maybe it's just more simpler and faster to use a text file with just domains names without 0.0.0.0?

Correct.

It really doesn't matter – Pi-hole strips them out, along with comments, carriage returns, empty lines, etc, all at the same time as part of the import process. Most lists have some of these unwanted parts:

Thank you for your answer and the explication of the gravity script it's very helpfull !

You're most welcome, enjoy!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.