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'
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.
That would depend on what you want to block.
Generally speaking, it won't work for well over 80% of websites world-wide (and that number is ever nearing the 100% mark, and may well be over 90% for websites in your respective country).
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.
No.
Pi-hole is a filtering DNS forwarder - blocking occurs by domain exclusively.
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
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