Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
by DyslexicAtheist on Wednesday January 08, 2020 @12:01PM
(#21993263)
indeed those would get thrown under the bus. it's a trade-off and depends on how paranoid you want to be.
[ Parent
| on HN ]
Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
by archi42 on Wednesday January 08, 2020 @12:31PM
(#21993649)
Two ideas to lessen the trade-off:
1. Use a browser extension that throws a warning on all unicode domains (maybe even with unicode highlighting). Drawback: Needs to be done per-device.
2. Let your pihole MitM all https traffic with a certificate you do NOT trust (maybe create one per domain, so you can add it to the trusted list); if the connection is over http, upgrade it to https (if the server doesn't speak https, proxy it). Drawback: It's much more complicated, and if your bank happens to be called e.g. "Bank of Zürich" you still need to take a look at the IDN to determine if you're on the right website (or add an exception).
Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
by chupasaurus on Wednesday January 08, 2020 @01:21PM
(#21994198)
Modification of 2nd idea. Run two dnsmasq servers: one which would do resolving and listening on loopback interface, and other listening 53/udp with no-resolv, whitelist of IDNs and filtering rules to pass normal and block other punycode DNs.
Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
by DyslexicAtheist on Thursday January 09, 2020 @01:38PM
(#22004049)
I came up with another "solution" using the linux kernel NFQUEUE: https://news.ycombinator.com/item?id=22003933