How should a blocklist look like

Hello everyone,

I'm building blocklist and I can't find a good tutorial or guideline for it.
I've tried the ||example.com^ and the 0.0.0.0 example.com setup and I don't know if they work at all or if I should just put the domain.
Can you help me ?

You can start with this post for some info. Its just a list of domains, one per line.

The normal format uses just the domain, one per line.

Pi-hole also accepts lines starting with an IP (like 0.0.0.0 example.com), but the IP will be ignored, so you don't need it.

This is called ABP format (Adblock Plus format). It will block example.com and also every subdomain (like www.example.com, webmail.subdomain.example.com, etc).

Pi-hole only accepts a restricted ABP syntax for domain matching: https://adblockplus.org/filter-cheatsheet#blocking2. No other ABP rules are accepted.

1 Like