|
|
|
|
|
by JCharante
2703 days ago
|
|
It'd work if people just simply posted the direct image, so you don't have to load their massively bloated website. Then again a direct link wouldn't support them through their monitization methods (ads), but if I'm already running an ad blocker.. |
|
The image subdomain servers of Imgur, i.imgur.com, look at the referer of your request and will conditionally redirect you to the web app.
Basically, direct links to images will only give you the image directly if the page you came from is on their whitelist.
Reddit is on said whitelist but I don’t think HN is.
And to further complicate the matter keep in mind that browser caching might make it look to you as though a direct link you posted somewhere is really direct, but to those who haven’t visited the image already they will be redirected the first time they visit that direct link.
For example, here is a direct link to an image hosted on Imgur: https://i.imgur.com/6O265V5.jpg
For me it will look this direct link serves the image only, even when I click my own link in this comment after I’ve posted the comment and am visiting it with HN as referer.
But if HN is not on their whitelist then you and everyone else clicking the link in my comment will be redirected to their web app, provided you didn’t happen to have the image in your cache already.
Edit: Yup, visited the link in this comment from another computer and am indeed redirected as I expected.
Edit 2: Am also redirected even on the device I posted from when following the link in my comment. So even browser caching didn’t stop that in this case.