News for hackers. Stuff that matters.
Re:Ask HN: What is the current (Apr. 2024) gold standard of ... by shepherdjerred on Monday April 01, 2024 @12:46PM (#39896139)
I doubt you could do this at the DNS level. Reddit probably loads static assets from `reddit.com`.

You could perhaps intercept the HTTP requests, but that would require decrypting SSL, so you'd have to MITM yourself if you wanted to do it at the network level.

You'd replace the DNS request for `reddit.com` to some device that intercepts the traffic. That device would redirect the HTTP request to `old.reddit.com` if applicable; static assets would be routed to `reddit.com`. I don't know how things like HSTS and certificate pinning fit into an idea like this.

Doing this at the device level is probably easiest. I've used Redirector [0] in the past and it works well.

[0]: https://github.com/einaregilsson/Redirector

Re:Ask HN: What is the current (Apr. 2024) gold standard of ... by njitram on Monday April 01, 2024 @04:11PM (#39898613)
I found this extension that makes it even easier, and you can configure it to go to either old.reddit.com or new.reddit.com (instead of going to 3rd generation even worse sh.reddit.com) without having to configure Redirector: https://chromewebstore.google.com/detail/ui-changer-for-redd...
Re:Ask HN: What is the current (Apr. 2024) gold standard of ... by lavezzi on Monday April 01, 2024 @05:16PM (#39899455)
OP said they didn't want to use an extension, but if they did I would vote Reddit Enhancement Suite anyway