add hotlink media url #441

Open
opened 2023-12-09 13:18:49 +01:00 by AntoineD · 1 comment
Member

I'm posting a request made to me in a private message.

The person would like to be able to link media to a post via url without having to upload it to the drive, to save space on the server.

It might look something like this:
image

_I'm posting a request made to me in a private message._ The person would like to be able to link media to a post via url without having to upload it to the drive, to save space on the server. It might look something like this: ![image](/attachments/8be6d04f-bc6f-4f31-aebe-6df6f234dd22)
AntoineD added the
enhancement
label 2023-12-09 13:18:49 +01:00
AntoineD added this to the Frontend rewriting project 2023-12-09 13:18:49 +01:00

I assume that this would not have any big space saving effect, considering that the image/media needs to be loaded trough the proxy, which itself stores it in cache anyways to save bandwidth and prevent unnecessary traffic.

It might have a small storage benefit in the long run when posts are getting older and therefore the image falls out of the cache, but considering that old posts pop up every now and then or new instances somehow see the posts and request the image again, which will trigger a recache, I would say the effect is rather minimal.

I don't see real hotlinking (as in serving the original image link to the user) as a option as it would bring several privacy related issues. Also many sites don't really welcome hotlinking their media and it would generate a lot of extra moderation work, considering all the weird stuff that could be done with it.

The first idea that comes to my mind is for example, serving different images based on: Source instance, region, browser, time etc.
Soo, someone could post a image that is just bunnies for everyone, expect if you are from instance AB and country CD, then it is Russian propaganda or some crap like that.

I assume that this would not have any big space saving effect, considering that the image/media needs to be loaded trough the proxy, which itself stores it in cache anyways to save bandwidth and prevent unnecessary traffic. It might have a small storage benefit in the long run when posts are getting older and therefore the image falls out of the cache, but considering that old posts pop up every now and then or new instances somehow see the posts and request the image again, which will trigger a recache, I would say the effect is rather minimal. I don't see real hotlinking (as in serving the original image link to the user) as a option as it would bring several privacy related issues. Also many sites don't really welcome hotlinking their media and it would generate a lot of extra moderation work, considering all the weird stuff that could be done with it. The first idea that comes to my mind is for example, serving different images based on: Source instance, region, browser, time etc. Soo, someone could post a image that is just bunnies for everyone, expect if you are from instance AB and country CD, then it is Russian propaganda or some crap like that.
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: iceshrimp/iceshrimp#441
No description provided.