Using the internal web server, can the successful Pi-hole blocks be routed to a single web page/address that indicates that it was Pi-hole that did the work? I find it confusing on the user browser what has been blocked or failed (typo, Pi-hole, DNS, uOrigin, etc). So, if Pi-hole blocks, the browser is sent to a page that says something like "Blocked, courtesy of Pi-hole!"
If it matters, I'm using Pi-hole (5.9, FTL 5.14, web interface 5.11) on Raspberry Pi 2 with DietPi (8.1.2)
You could experiment with one of Pi-hole's outdated IP blocking modes.
However, that would only work with HTTP sites.
Since the vast majority of sites today is HTTPS, Pi-hole has long since switched to NULL blocking as default.
Thanks. That's good food for thought with NULL and security.
So, looking at the Steven Black list that is provided with Pi-hole (suggested default in a sense), I see the lines
This maintains the system's loopback (127.x.x.x) but also that line there regarding 0.0.0.0. That's the NULL, correct? The other lines, where blocking is provided, are formatted in the list as "0.0.0.0 wizhumpgyros.com".
If that line ("0.0.0.0 0.0.0.0") were to be something like "0.0.0.0 127.0.0.2", could we configure the local web server (lighttpd) to deliver a custom page on that 127.0.0.2 address? Without losing https security.
No. Pi-hole strips out the leading IP addresses and keeps only the domains in gravity.
Thanks. I was wondering the difference I see in the lists' formats.
Some lists are formatted and published for use as HOSTS files, which is why they include the leading NULL or loopback IP. Others are formatted for adblocker use only. Pi-hole can handle either format.