vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Mixed Content Blocker? (https://vborg.vbsupport.ru/showthread.php?t=325827)

habboubih83 11-30-2017 06:58 PM

Mixed Content Blocker?
 
Hello,

I've implemented the SSL to my forum. However, whenever there is an external image or video (Mixed Content), I get a browser error. Is there any way to block external images or embedded videos if they don't have secured connection? I noticed that there is an add-on for that but it's only for vb 4. Is there a vb 5 version?

BulliM 12-01-2017 11:16 PM

I solved that by setting Replacement Variables for http:// (replace to https://) in AdminCP. But that causes errors on links to websites, who doesn't support https.

This could also help you: https://www.vbulletin.com/forum/arti...forum-to-https

noypiscripter 12-01-2017 11:19 PM

<a href="https://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-miscellaneous-modifications/4207-block-mixed-content-prevent-ssl-breaking" target="_blank">https://vbmods.rocks/forum/vbulletin...t-ssl-breaking</a>

The HTTP Content-Security-Policy (CSP) block-all-mixed-content directive prevents loading any assets using HTTP when the page is loaded using HTTPS.

habboubih83 12-02-2017 11:02 PM

Quote:

Originally Posted by noypiscripter (Post 2591370)
https://vbmods.rocks/forum/vbulletin...t-ssl-breaking

The HTTP Content-Security-Policy (CSP) block-all-mixed-content directive prevents loading any assets using HTTP when the page is loaded using HTTPS.

I can't see the contents of the post you shared. It says I have to post anything. I already did! Can you please post the hidden contents here. Thanks

Dave 12-03-2017 12:19 AM

Add the following to your headinclude template:

HTML Code:

<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
This will probably only work in Chrome, FireFox and Opera though.


All times are GMT. The time now is 01:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01716 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete