# Create Blacklist html page?

**URL:** <https://discourse.pi-hole.net/t/create-blacklist-html-page/48357>\
**Category:** Help\
**Created:** [July 19, 2021, 9:00am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357 "2021-07-19T09:00:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![afik](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/958977/32.png) [@afik](https://discourse.pi-hole.net/u/afik)\
**Post date:** [July 19, 2021, 9:00am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/1 "2021-07-19T09:00:07Z")

</div>

wanted to know if it's possaible to create a simple HTML page whenever someone try to reach Blacklist sites?

I have added cnn.com to the Blacklist (jsut to check) , I get the html that said - no internet connection (defualt browser page).  
can I created my own html page that all blacklist sites will be direct to him ?  
somethinglike  
'this site is blocked ! connect administrator , bla bla lba'

Thanks,

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [July 19, 2021, 7:02pm UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/2 "2021-07-19T19:02:48Z")

</div>

Yes you can do this. But mind, that it will only work for `http` sites, not `https`.

You need to change your blocking mode to IP.

> **[Blocking mode - Pi-hole documentation](https://docs.pi-hole.net/ftldns/blockingmode/)**

And modify the blocking page, which is located at `var/www/html/pihole/`

You might find more info using the forum's search function, e.g.

> [@Customize Block Page](https://discourse.pi-hole.net/t/customize-block-page/4693):
>
> Please allow us to customize the block page and not stop our pi-hole from updating. I'd love to be able to add a Leslie South Park themed block page for my users at home to get a chuckle out of it whenever an AD is blocked.

---

<div class="post-metadata">

**Author:** ![afik](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/958977/32.png) [@afik](https://discourse.pi-hole.net/u/afik)\
**Post date:** [July 20, 2021, 6:21am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/3 "2021-07-20T06:21:42Z")

</div>

I read the post you show me  
and also found this guide  
[http://knowcitrix.com/pihole-custom-block-page/](http://knowcitrix.com/pihole-custom-block-page/)

but before I start - I want to understand why I can only block HTTP and not HTTPS ?  
I mean - the blocking is according to the IP , no?  
the IP could be https and also http - and I block the IP and not the name

I don't want to setup everything and it will not do what I want\need.

Thanks ,

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [July 20, 2021, 6:48am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/4 "2021-07-20T06:48:09Z")

</div>

> [@afik](#):
>
> I don't want to setup everything and it will not do what I want\need.

That would depend on what you want to block.  
Generally speaking, it won't work for well over [80% of websites world-wide](https://www.abetterinternet.org/documents/2020-ISRG-Annual-Report.pdf) (and that number is ever nearing the 100% mark, and may well be over 90% for websites in your respective country).

> [@afik](#):
>
> but before I start - I want to understand why I can only show HTTP and not HTTPS ?

HTTPS connections provide authenticity of the server you are connecting to by crpytographic means, so you can be sure you are communicating to the server you intend to contact.  
You'd have to break that encryption if you wanted to show an arbitrary page instead of actual web server content (which would include forging certificates for every site you want to block).

The continuing proliferation of HTTPS was one of the major reasons why Pi-hole has switched to NULL blocking (unspecified IP blocking) as default years ago.

> [@afik](#):
>
> I mean - the blocking is according to the IP , no?

No.  
Pi-hole is a filtering DNS forwarder - blocking occurs by domain exclusively.

---

<div class="post-metadata">

**Author:** ![afik](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/958977/32.png) [@afik](https://discourse.pi-hole.net/u/afik)\
**Post date:** [July 20, 2021, 7:41am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/5 "2021-07-20T07:41:41Z")

</div>

so you can say it's vey much useless to block websites using th pi-hole in that way?

another related question  
I found that I can download to th PI-HOLE a list of IPs to block facebook (for example)  
[https://gitlab.science.ru.nl/bram/pihole-facebook](https://gitlab.science.ru.nl/bram/pihole-facebook)  
which is a list of all facebook sites and "subsite"  
if I will download it , when I will try to enter facebook - it will give the default error page "page not found" ? or the block custom page? or nothing ?

\*\* I don't want to downlaod it , because I don't know how to disable it after 🙂

Thanks ,

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [July 20, 2021, 11:11am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/6 "2021-07-20T11:11:30Z")

</div>

> [@afik](#):
>
> so you can say it's vey much useless to block websites using th pi-hole in that way?

> [@Bucking\_Horn](#):
>
> That would depend on what you want to block.  
> Generally speaking, it won't work for well over [80% of websites world-wide](https://www.abetterinternet.org/documents/2020-ISRG-Annual-Report.pdf) (and that number is ever nearing the 100% mark, and may well be over 90% for websites in your respective country).

> [@afik](#):
>
> I found that I can download to th PI-HOLE a list of IPs to block facebook (for example)

If that would really be a list of IPs, it won't work with Pi-hole, as Pi-hole is a filtering DNS forwarder - blocking occurs by domain exclusively.

If it is a list of domains in HOSTS format, than you can assign, enable and disable it via [Group management | Adlists](http://pi.hole/admin/groups-adlists.php) just like any other blocklist.

---

<div class="post-metadata">

**Author:** ![afik](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/958977/32.png) [@afik](https://discourse.pi-hole.net/u/afik)\
**Post date:** [July 20, 2021, 11:16am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/7 "2021-07-20T11:16:31Z")

</div>

its a list like this

```auto
0.0.0.0 0-edge-chat.facebook.com
0.0.0.0 1-edge-chat.facebook.com
0.0.0.0 2-edge-chat.facebook.com
0.0.0.0 3-edge-chat.facebook.com
0.0.0.0 4-edge-chat.facebook.com
0.0.0.0 5-edge-chat.facebook.com
0.0.0.0 6-edge-chat.facebook.com
0.0.0.0 a.ns.facebook.com
0.0.0.0 ae0.bb01.ams2.tfbnw.net
.
.
.
.

```

so it's good \ not good ?  
also what will I see when someone try to enter? the block.html? or will return an error 404 page not found?

Thanks ,

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [July 20, 2021, 11:20am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/8 "2021-07-20T11:20:00Z")

</div>

> [@afik](#):
>
> so it's good \ not good ?

I can't judge the quality of its content.  
The format looks ok.

> [@afik](#):
>
> also what will I see when someone try to enter?

I cannot know that, since that would depend on your configuration.  
Easiest way to find out: Give it a try.

---

<div class="post-metadata">

**Author:** ![afik](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/958977/32.png) [@afik](https://discourse.pi-hole.net/u/afik)\
**Post date:** [July 20, 2021, 12:05pm UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/9 "2021-07-20T12:05:02Z")

</div>

I will build another PI with PI-hole and give it a try

thank you meanwhile...

---

<div class="post-metadata">

**Author:** ![afik](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/958977/32.png) [@afik](https://discourse.pi-hole.net/u/afik)\
**Post date:** [July 25, 2021, 2:19pm UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/12 "2021-07-25T14:19:01Z")

</div>

It won't show me the blocking page  
just "page not there 404 , no internet connection"

I thought I could explain people why I'm blocking , and only blocking 🙂

I think if this option will be - it will be great ( if it possiable and doable)

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [July 25, 2021, 4:45pm UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/14 "2021-07-25T16:45:04Z")

</div>

> [@afik](#):
>
> I think if this option will be - it will be great ( if it possiable and doable)

It's not. You can not do this for https pages and that's where everything is heading.

---

<div class="post-metadata">

**Author:** ![afik](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/958977/32.png) [@afik](https://discourse.pi-hole.net/u/afik)\
**Post date:** [July 26, 2021, 6:21am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/15 "2021-07-26T06:21:25Z")

</div>

OK  
it's also good to know that something can't be done 🙂

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [August 16, 2021, 6:22am UTC](https://discourse.pi-hole.net/t/create-blacklist-html-page/48357/16 "2021-08-16T06:22:07Z")

</div>

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