Block pages

Hi folks,

I came across a historic page: Customize Block Page - #9 by MrStyles

Please forgive me if this is just not possible as I am not an expert on the behind the scenes of Pi-hole.

What I would like to achieve is:

If blocked by Pi-hole (like a website for example) -> redirect to >/blocked.

To show a custom message to users to say it’s been blocked?

Thanks

This will only work for unencrypted http traffic. As the majority of traffic is https today, this won't work. This is also the reason why we removed this blocking page some time ago.

Unfortunately the feature was removed and no longer works. It would be nice if a way to fix the issue with HTTPS connections could be fixed, but (although I do know how to code), I don't have the networking protocol understanding to contribute to resolving this issue.

It would require you to MITM your SSL traffic. This is highly undesirable.

Understood. I've done some quick searches but struggling to find an answer.. do you/anyone know if you can use a custom error page on Edge/Chrome etc for when you get the ERR ADDRESS INVALID error?

I don't know.

I don't think it's possible to change Chrome's error pages, but maybe, maybe it's possible to create an extension.

Note:
I really don't know if this is possible.
I never tried something similar and I think it's too much trouble to only show a custom error page.

I just had a play with a few things, could this not be achieved by setting the blocking mode to IP_NODATA_AAAA and have the custom block page hosted on the main www directory?

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