The discussion revolves around protecting a server’s IP from exposure, specifically when using CloudFlare. RedBear discovered that inserting a URL from CloudFlare can reveal the server’s real IP, making it vulnerable to DDoS attacks. They suggested implementing a whitelist to filter domains allowed to use onebox, but found that the existing settings in Discourse (blocked onebox domains and allowed inline onebox domains) do not work.
supermathie provided relevant links to topics on hiding the origin on CloudFlare and using a proxy server for link previews. RedBear later mentioned finding a potential solution using Content Security Policy (CSP) to restrict image loading to their domain. kuydiyadri expressed interest in learning more about this solution, as they have struggled with hackers obtaining their IP address through IPlogger.
Blocked domain by IPlogger can’t help because the attacker can use a custom domain using the script for logger ip address. I think need use whitelist to filter domain who can use onebox.
Example: if admin allow only url from Youtube, Twitter, Imgur, all other url will be blocked.
Maybe Discourse have this setting? I can’t found
Update
Setting blocked onebox domains and allowed inline onebox domains in this page /admin/site_settings/category/onebox not work.