python script - is the connection http or https ?

Yuri yvoinov at gmail.com
Sat Feb 8 15:10:59 UTC 2020


Better to use approproate tool for such cases.

To protect somebody's from big and evil internet usually uses http(s)
proxies. Not DNS recursors. Its more complex task, but much efficient.

08.02.2020 18:36, dy1977--- via Unbound-users пишет:
> Hello,
>
> we are using unbound an Internet filter, which is a critical
> applacation now to protect children (and not only...) from some
> dangers of Internet. The filter is working fine, thanks for the help
> already received. There is still a desired improvement.
>
> When a domain is forbidden, the python script replies with a valid DNS
> answer, directed to an error page. No problem in http. But in https,
> the result is a warning from the browser since it receives a
> certificate which is not valid for the requested domain. It is better
> in this case to return a NXDOMAIN.
>
> Now my question : is it possible to know if the connection is http or
> https ? It would allow to choose the best option for each case.
>
> Thanks
>
> Dysmas
>
-- 
"C++ seems like a language suitable for firing other people's legs."

*****************************
* C++20 : Bug to the future *
*****************************


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20200208/bbd51326/attachment.bin>


More information about the Unbound-users mailing list