![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Don't hotlink userinfo images
Title:
Don't hotlink userinfo images
Area:
external linking
Summary:
So you know that nifty trick you can do where you type <user name=example site=examplesite.com> and the username that shows up will be styled for examplesite.com, with the link going to example.examplesite.com and with examplesite.com's profile userhead coming up? Well, when you do that, the userheads are all hotlinked.
Description:
Except for Livejournal's, anyway. I tested this with all of the example journal sites I could think of, and for all of the ones that I tried, the profile images were hotlinked from that site's server, instead of being stored locally like LJ's is at http://s.dreamwidth.org/img/external/lj-userinfo.gif
Check the image sources for these images and you will see:announcements
news
news (this userhead is the same as LJ's, but being pulled from Journalfen's server)
new_shit
So... basically my suggestion is to store them all locally. (As a side benefit, this would allow users to customize how different sites' userheads show up in their styles!)
This suggestion:
Should be implemented as-is.
15 (30.0%)
Should be implemented with changes. (please comment)
4 (8.0%)
Shouldn't be implemented.
13 (26.0%)
(I have no opinion)
18 (36.0%)
(Other: please comment)
0 (0.0%)
no subject
no subject
no subject
no subject
Also, isn't hotlinking generally considered bad form? Even if it's just the favicon? I always felt that way, but maybe I'm just so five years ago in this belief.
no subject
no subject
It used to be, back when bandwidth was one of the most expensive things a site had to worry about.
These days, a tiny favicon is such a tiny image that most sites'd barely notice it was happening.
Hotlinking a large image or similar wihtout permission would still be a bad thing, but a small filesize icon, that's likely to get cached quickly, shouldn't be an issue.
no subject
Uh, isn't that, essentially, a problem you had with the Archive of Our Own not announcing a change in their iconography? If deadjournal updates their favicon, what delay would be appropriate for us to reflect it, if we started caching?
no subject
no subject
And I register favicons as one of the first things I see about a site, I recall posting about a site that used the IE logo as their favicon, very offputting.
no subject
So if, for example, I wanted to write a Greasemonkey script to change all Insanejournal userinfo images to something else (because I hate the way they look)... is that even possible?
no subject
[LJ/DW] Making profile icons look cool in your layout
[DW] Profile link icons update.
You could almost certainly put the code into Stylish, I've never played with Greasemonkey.
Not really, no, the key trigger is the full URL of each image, if there are multiple different images, they must have multiple URLs. You just need to know the exact location of every file you want to replace.
And if, for example, the site you're dealing with (like, say, Livejournal) changes their URLs for all their images (by, for example, switching the CDN they're using), then you'll need to redo all the code for that specific site. To be fair, I haven't had to do that for LJ stuff for at least a year, they appear to like their current CDN.
The way I've got mine setup, any image that I haven't specifically coded something for ends up having a Dalek, I keep meaning to change it to something I'm not using to represent something, Dalek is for both feeds and anything else, which is Wrong (as official comms like this one currently get a Dalek).
no subject
I'd go with a local cache refreshed daily or something.
no subject
Sorta no, but if caching wouldn't add too much load on our end, cache, otherwise lets just hotlink -- hopefully they're at most 1k.
Having our own copy means potentially copyright issues ( "this is our userhead, why is it hosted on your site?!?!?!?" ), we'd have to keep up with icons changing for the site ( Yeah, changing can be bad too but then we'd have people going "uh, why is DW using <old icon> for AO3, they changed that MONTHS ago" ), etc...
no subject
Of course, that would create a lag (of, at a maximum, whatever length of time was a 'reasonable basis') between changes to a remote site's user icons and the update appearing on Dreamwidth.
no subject
no subject
no subject
I support the option of hosting them locally on Dw and pulling them from the remote server once a day.
This will also ensure that if a service ceases to exist, all the old links will still display correctly on Dw.