View Full Version : Only allow uploaded images to display
habboubih83
07-28-2017, 05:28 AM
Hello,
I've just implemented SSL to my forums. However, inserting an external image to the post will defeat the purpose of the secured connection.
My question is how can I allow only internal images (uploaded to attachments) to be displayed in the post without having to disable the IMG BB code?
noypiscripter
07-30-2017, 05:52 AM
You can add this meta tag in the head to block external images using http
<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content" />
I added that on my site. I also use CloudFlare to enable "Automatic HTTPS Rewrites" option which helps fix mixed content by changing "http" to "https" for all resources or links on your web site that can be served with HTTPS.
habboubih83
07-31-2017, 09:34 PM
You can add this meta tag in the head to block external images using http
<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content" />
I added that on my site. I also use CloudFlare to enable "Automatic HTTPS Rewrites" option which helps fix mixed content by changing "http" to "https" for all resources or links on your web site that can be served with HTTPS.
This will block external CSS and JS files.
noypiscripter
08-05-2017, 12:46 PM
External css and js files should be using https or they will not work anyway.
Only those using http will be blocked. And that will keep the ssl lock icon in the browser green even if you have mixed content.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.