How do services like discord prevent IP grabbing, when embedded videos/images are attached?

Pretend I have posted an image or a video that is hosted on my private server to the discord channel.

Then someone else in that discord server clicks to play the video, or view the embedded message (Not following the link, just open it up in the app).

How(if at all) does discord prevent the leaking of client information like IP addresses?

Do they relay the video? (seems like a very expensive solution)

Do they not display the embeds from non-trusted sources?

1

2 Answers

From my testing with Discord embed, I wasn't able to find the IP of my Discord clients but only 34.x.x.x and 35.x.x.x

Discord acts as a proxy and avoid exposing their users' IP address unless they download the embedded content or "Open original"

The only way a service can do that is by copying the image/video from the server to itself, and then substituting a link to itself in the chat instead of the one you posted.

A service is not obligated to do this - it may simply post the link as you send it. Your IP address is then visible to anyone who does a DNS lookup on the domain name.

I've never tried this so I don't know what Discord actually does. Try it in a chat room by yourself or with trusted people only and see what happens.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like