How to Change Access Denied Page

Hello.
I am new to Pi-Hole.
Is there a way to change the access denied page to a simple HTML page I have created?
Here is HTML code:

<!DOCTYPE html>
<html>
<link rel="shortcut icon" href="Pi-Hole.ico">
<link rel="apple-touch-icon" href="Pi-Hole.png">
<link rel="icon" sizes="192x192" href="Pi-Hole.png">
<h2><image src="Pi-Hole.png"></image> Access Denied.</h2>
<p><b>This Website Has Been Blocked Because This Is In Pi-Hole`s Blacklist.</b><p>

Pi-Hole-Access-Denied-Code.zip (32.1 KB)

1 Like

This page may have the answer for you:

1 Like

It works on the raspberry itself, but not on clients?
Only see "unable to connect" on other clients in network. Have i misconfigured something?
Using unbound too.

These are changes you make in how the Pi-hole serves the block page. This should be seen the same on all clients that connect to that page.

1 Like

Thanks jfb,
i've read the logs and finally find out i did a stupid mistake with the nameserver (127.0.0.1#5335), so the ip was 127.0.0.53. It's working now!
Custom block page is now visible on all clients.

Edit: Is it possible to return the blocked website (i know html is not working) via php to the clients?

Wish i had more money, but 2nd donation is out now. Big thanks to the Devs for this great piece of Software!

Thanks That is Very Handy!

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