Allowing Discord to embed images on my cdn
Hi. I use Cloudflare security rules to protect my site. However, i want to enable Discord to embed images. I now just created a skip rule to allow browsers with the Discord app header, but figures that just makes a vuln?
3 Replies
Feedback
Feedback has been submitted! Thank you :)
Did not work
All my uploads are in /u
Support AI
I apologize that the "hotlink-ok" directory solution did not work for you.
Let's try another approach. You can create a configuration rule to disable Hotlink Protection selectively for the Discord referer. According to the documentation, you can create a configuration rule covering the path of an image folder to allow hotlinking from specific referers.
You can refer to the documentation on configuration rules for more information: https://developers.cloudflare.com/rules/configuration-rules/
Additionally, you can also check the documentation on exempting partners from Hotlink Protection: https://developers.cloudflare.com/waf/custom-rules/use-cases/exempt-partners-hotlink-protection/
Please let me know if you need more assistance or clarification on how to set up the configuration rule.
Sources
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.