Windows Disable: This page contains both secure and nonsecure items
Windows Disable: This page contains both secure and nonsecure items
Windows, Disable:, This, page, contains, both, secure, and, nonsecure, items


Wed Jul 21, 2010 7:35 am - Windows Disable: This page contains both secure and nonsecure items
#997
Windows Disable: This page contains both secure and nonsecure items
author: pinguin
Leave Your Comments
name
comments
Share
Share this post by copy and paste this URL and put it on your forums or use it on your profile like myspace, friendster, Facebook, Twitter or others and add in with your comments.
URL Link: ask
Use this HTML code to embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed: ask
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on with Posts and Replies on your forums
BBCODE: ask
| More
Fri Aug 04, 2006 6:04 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#1266
pinguin
thanks
Wed Nov 08, 2006 8:05 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#1267
pinguin
Solution: Fix for secure and nonsecure items warning message

I run a secure phpBB forum that ONLY operates on port 443, SSL is required or the connection is denied. My users started requesting the ability to post youtube and google videos within the post.

I installed the [2.0.19] Youtube Video BBCode and the [2.0.21] Google Video and everthing worked perfectly, until I tested the feature in my browser and got the following warning message:


     Quote:
This page contains both secure and nonsecure items.

Do you want to display the nonsecure items?


AHH! How annoying. So I went about looking for a workaround for this and finally came up with my own solution, that is very easy.

Open includesbbcode.php

Find
     Code:
// [email]user@domain.tld[/email] code..
$patterns[] = "#[email]([a-z0-9&-_.]+?@[w-]+.([w-.]+.)?[w]+)[/email]#si";
$replacements[] = $bbcode_tpl['email'];


After Add
     Code:
// [youtube]YouTube URL[/youtube] code..
$patterns[] = "#[youtube]http://(?:www.)?youtube.com/watch?v=([0-9A-Za-z-_]{11})[^[]*[/youtube]#is";
$replacements[] = $bbcode_tpl['youtube'];


// [GVideo]GVideo URL[/GVideo] code..
$patterns[] = "#[GVideo]http://video.google.com/googleplayer.swf?docid=([0-9A-Za-z-_]*)[^[]*[/GVideo]#is";
$replacements[] = $bbcode_tpl['GVideo'];

// [GVideo]GVideo URL[/GVideo] code..
$patterns[] = "#[GVideo]http://video.google.com/videoplay?docid=([0-9A-Za-z-_]*)[^[]*[/GVideo]#is";
$replacements[] = $bbcode_tpl['GVideo'];


Find
     Code:
$text = preg_replace($patterns, $replacements, $text);


After Add
     Code:
$text = str_replace("http://www.youtube.com/", "https://example.com/lounge/youtube/", $text);

$text = str_replace("http://video.google.com/videoplay", "https://example.com/lounge/googleplayer.swf", $text);
$text = str_replace("http://video.google.com/", "https://example.com/lounge/", $text);


Now heres the cool part, in your sites root web-accessible folder http://www.example.com/ add an .htaccess file with the following:


     Code:
RewriteEngine On
RewriteBase /
RewriteRule ^lounge/googleplayer.swf(.*)$ http://video.google.com/googleplayer.swf$1 [L]
RewriteRule ^lounge/youtube/(.*)$ http://www.youtube.com/$1 [L]


and it worked!



http://www.htaccesselite.com/htaccess/fix-for-secure-and-nonsecure-items-vt128.html
Wed Nov 15, 2006 12:58 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1268
pinguin
Thanks for this info. i need some clarifications on this.

In the below url, you have mentioned 'I basically did a str_replace on all posts text for http://video.google.com and http://youtube.com to change them to https://www.example.com/htaccess/ '.

Could you elaborate on this. Why do you change it to example.com etc...
Thanks.

http://www.htaccesselite.com/htaccess/fix-for-secure-and-nonsecure-items-vt128.html
Wed Dec 13, 2006 7:38 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1269
pinguin
Changing the "Display Mixed Content" setting in IE 7 did not work for me. Regardless of what I set it to, I still see the message "This page contains both secure and non-secure items".

So what can I do to get IE not to show me this message??
Wed Jan 17, 2007 6:35 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#1270
pinguin
[quote:1fa56dc810="sweetyt"]Thanks for this info. i need some clarifications on this.

In the below url, you have mentioned 'I basically did a str_replace on all posts text for http ://video.google.com and http ://youtube.com to change them to https ://www.example.com/htaccess/ '.

Could you elaborate on this. Why do you change it to example.com etc...
Thanks.

http ://www.htaccesselite.com/htaccess/fix-for-secure-and-nonsecure-items-vt128.html


Example.com is supposed to represent the url that the phpBB forum is hosted from. I didn't want to reveal the url of the site I was talking about.

This is elaborated on in much more detail at
http://www.askapache.com/2006/htaccess/mixed-ssl-content-warning-secure-fixed.html
Mixed SSL Content Warning Secure Fixed - AskApache
Thu Feb 08, 2007 3:21 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1271
brastic
congratulations, this is an execellent tutorial guide on showing how can i get rid of the this page contains both secure and nonsecure items warning
Sat May 19, 2007 1:51 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1272
vicky
helo
Thu Aug 16, 2007 10:48 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1273
Prasad
this is good solution for disable security information and it is useful for https urls.

thanks
prasad kr
Wed Sep 12, 2007 12:06 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#1274
botgurl
ms attributes this problem to iframe tags with no valid src attribute. worked when i referenced a blank html in iframe tags

support.microsoft /default.aspx?scid=kb;en-us;261188
Fri Sep 14, 2007 8:02 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1275
eric chavkin
exactly what i was looking for . thanks
Fri Nov 30, 2007 8:00 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#1276
Stella
i have been reserching the past 3 month how to get rid of this anoying pop up and thanks to your tutorial i finally got rid of...thank you very much
Tue Mar 18, 2008 7:51 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1277
Mahatab
thanks, my problem solved. i have successfully removed this security warning by placing src attribute value
Sun Mar 30, 2008 1:31 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#1278
Charlie
I see that people are giving thanks to solving the following problem but I do not see where the fix is explained. "Windows Disable: This page contains both secure and nonsecure items"

I obviously do not have a great deal of computer knowledge. Can the fix be explained step by step to me. I have tried and set my security , Mis Display Mixed Content Is Enabled. Still the sam Pop Up on one of my bank web sites (Wachovia). Interestingly, I just started to receive this pop up. Thanks
Mon Aug 24, 2009 5:29 am - Re: Windows Disable: This page contains both secure and nonsecure items
#1279
metios2
this helps but how about if i want to "secure and nonsecure items" security warning in my web browser. i use three browser: ie, firefox and chrome.
Fri Oct 23, 2009 7:50 am - Re: Windows Disable: This page contains both secure and nonsecure items
#2628
happy
thank you for your help
Fri Nov 06, 2009 8:35 am - Re: Windows Disable: This page contains both secure and nonsecure items
#2727
gopan
do you have a howto display unsecure content on a https page workarround?
Mon Nov 09, 2009 3:53 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#2764
charlibron
how do i correct this message from ie6 in a iframe src this page contains both secure and nonsecure items
Fri Dec 04, 2009 9:33 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#2961
chatser
why does my comp ask if i want to let unsecure items go if connection keeps timing out! this will help in stopping security warnings on trusted sites if you are sick of browser warning that both secure and unsecure items are on every page. got it remove from my pages now it works, thanks
Sun Dec 06, 2009 10:54 am - Re: Windows Disable: This page contains both secure and nonsecure items
#2965
markucs
why do i get an error this page contains pop up windows and how shall i deal with it
Thu Jan 21, 2010 7:29 am - Re: Windows Disable: This page contains both secure and nonsecure items
#3297
gleen
how do i stop the box asking if i want to display secure and nonsecure info on a web page
Thu Jan 21, 2010 7:43 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#3304
melba
how do i stop windows from asking me do i want this unsecure site
Thu Jan 21, 2010 7:43 pm - Re: Windows Disable: This page contains both secure and nonsecure items
#3305
melba
how do i stop windows from asking me do i want this unsecure site
Thu Apr 01, 2010 8:13 am - Re: Windows Disable: This page contains both secure and nonsecure items
#3685
eli
i wanted to see how do i avoid getting a security warning on an internet site this page contains secure and unsecure
Tue Jun 15, 2010 3:25 am - Re: Windows Disable: This page contains both secure and nonsecure items
#4063
Iqbal
great. its very helpful.
Fri Aug 06, 2010 10:04 am - Re: Windows Disable: This page contains both secure and nonsecure items
#4315
Pete
you learn something new every day!

many thanks
Related Pages