Hacker News new | ask | show | jobs
by mywittyname 1035 days ago
I think simply modifying the hosts file on a machine to "rename" the domain of the site you want to visit would be sufficient to bypass a browser-level block.
2 comments

The browser must send a request with a Host header with the correct site name or the server will 404 it.

What could work is a local proxy server that translates the host name in the request.

It must MITM the https requests though.

> The browser must send a request with a Host header with the correct site name or the server will 404 it.

Only if you configured it that way. Most http servers have a "default" website which they will happly serve from if the Host header has no match. I expect these sites will continue to work just fine in firefox using the host file hack or via alternative DNS domains.

Unless they just want a foot-in-the-door law to make certain browsers illegal (to then expand on it later), blocking content at the terminal is not the way to do it. So so many ways to get around it.

What we want or would end up with is a Firefox plugin to toggle a boolean.
Is MITM even possible for HSTS preloaded websites?
Please just make the block-list a plain-text human-readable file. That way I can update the file when a new torrent website is convicted and black-listed.