The priority is:
- Exact Whitelist
- Regex Whitelist
- Exact Blacklist
- Blocklist domains (AKA
gravity
) - Regex Blacklist
If a domain is found anywhere from top to bottom, FTL skips the rest of the tests.
Yes. The drawback of regex is that any regex filter could match any domain. Hence, we have to loop over all enabled regex filters for each domain that is not either whitelisted or exactly blocked before.
The performance impact of a very large amount of regex filters can be quite hefty on low-end devices like Pi Zero. In contrast, the exact lists use a B-tree for the lookups to ensure that highest performance is reached even when you load millions of domains into these lists.