according to comments works for this specific purpose. Haven't used it myself.
I was hoping ublock did it but doesn't appear to.
If i.reddit.com is a different IP then a hosts file entry might do it.
Does pi-hole do this?