@beerguzzle said in pfblockerng pornhub block results:
What I would like is an actual webpage saying "site blocked by administrator", something like the file /usr/local/www/pfblockerng/www/dnsbl_active.php or a webpage "stop watching porn you perv!". How to do this?!
As @SteveITS already mentioned : in short, you can't.
When a browser wants to visit https:///www.abc.com and it gets an answer back from a site that says, with it's certificate (remember : https = TLS) : I am (https://)www.123.com then the browser starts to shows the message you've just shown.
If you go to a site https called : https ://www.your-bank.com what would happen if your browser showed you this site : https://www/not-your-back.com (and you were not paying attention the the URL, entered your credentials ... and now some unknown guy has your login.
So, we agree, you don't want to break TLS (https), and you don't want others to be able to do the same thing. Turn the phrase around : if you can do it, they can do it.
If "they" can do it, then your issue is solved, as the entire Internet will fall in the hour or so.
The "dnsbl_active.php" page is nice, but only works well when web servers were using "http", not https. These were the good old days and are over now.
This page shows the visitor : " now the admin of the network you connected to also knows what site you tried to visit ". Don't bother anymore. Just DNSBL it, and use these settings :
479f2b7c-faf9-4092-96b8-00e27730f1c9-image.png
Consider the pfBlockerng web 'blocked page' page showing the user a blocked page as a gadget that worked well in the past, but that's over now.
You'll still know who did what, as the DNSBL reports logs are there.