#Best practices for BunnyCDN token authentication for images?

8 messages · Page 1 of 1 (latest)

vital estuary
#

Hi, I don't know if this is the right place to ask, but couldn't find anything anywhere. With BunnyCDN token authentication, you need to include the token in the url as a query parameter. I'd like to know, for images that are part of a public page, should I just include the full url in the src or do I need to somehow serve it from the backend to prevent users copying the token from the inspector? Sry for the noob question, I'm not very experienced in web security. Any help would be much appreciated!

feral moonBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

gray fossil
#

You can see, that discord for example also share details to access the specific image for a specific amount of time:

vital estuary
#

hey thanks for the reply! makes sense. since the image is public anyway, it needs to be accessible :). I was thinking that, but its good to have confirmation. So if i understand correctly, the token is then basically to prevent people from downloading private files in my storage, correct?

gray fossil
vital estuary
#

ok, thank you so much! all clear now

feral moonBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1250355866759331871 message)