Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
linking to HTTP sites from HTTPS pages
Old 04-20-2007, 03:06 PM linking to HTTP sites from HTTPS pages
Average Talker

Posts: 22
Location: NY, USA
Trades: 0
I have an HTTPS/SSL-protected site. On some pages, there are outside links to non-protected (http://) pages on other sites. We're not pulling content in from these sites, just providing direct links to them.

Problem is, while some browsers don't mind this, others complain about "both secure and nonsecure items" and warn the user about visiting a page with "mixed content", which can not only be disconcerting to naive users, but downright annoying when the warning is presented on every page (and multiple times per page when the user browses back and forth between pages).

MSFT's stance on this seems to be a mandate to site owners: "Don't mix content." I think that's overkill and a bit silly: when information is available on HTTP pages, HTTPS pages should be able to link to them (I'm saying "link to," and not "pull content from"; I understand that these are two distinct actions), instead of statically copying content from another site.

While I'm interested in experiences with this and opinions, I'd love to know whether there's a solution that would keep users of certain browsers happy, while not duplicating content from other sites.
deesto is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-20-2007, 03:27 PM Re: linking to HTTP sites from HTTPS pages
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
There is no solution that I'm aware of. Either apply the SSL to the WHOLE site, or don't mix them. The warnings are subject to the USERS security settings in their browser.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-20-2007, 03:45 PM Re: linking to HTTP sites from HTTPS pages
Average Talker

Posts: 22
Location: NY, USA
Trades: 0
Quote:
Originally Posted by LadynRed View Post
There is no solution that I'm aware of. Either apply the SSL to the WHOLE site, or don't mix them.
Thanks. Not quite sure what you mean by applying to the whole site: our SSL cert does apply to our entire site, from the root on down. So it covers all our pages. Is that what you mean?

The trouble I'm having is when a(n SSL-authenticated) page contains a link to an outside, non-HTTPS site. Shouldn't the browser be smart enough to know that this is simply a link, and that the "content" isn't being pulled from another site?

Quote:
Originally Posted by LadynRed View Post
The warnings are subject to the USERS security settings in their browser.
Right: but in my experimentation, I've seen that enabling "allow mixed content" doesn't seem to have any effect at all.
deesto is offline
Reply With Quote
View Public Profile
 
Old 04-20-2007, 03:56 PM Re: linking to HTTP sites from HTTPS pages
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Providing a link on a secured page will not triggure the mixed content warning, but chances are you are including an external javascript file or css file or something that is not being called from a secured source.

In the includes, either call them as a relative link, or call the by this method:

src="//www.domain.com/javascript.js"
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 04-20-2007, 04:04 PM Re: linking to HTTP sites from HTTPS pages
Average Talker

Posts: 22
Location: NY, USA
Trades: 0
Quote:
Originally Posted by mgraphic View Post
Providing a link on a secured page will not triggure the mixed content warning, but chances are you are including an external javascript file or css file or something that is not being called from a secured source.
I just ran through the generated source for the home page (which IE says is "mixed"), and there were absolutely no HTTP includes, only external links. The only actual file being included from HTTP (and from off-site at all) is the XHTML DTD declaration in the header:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Could that trigger this "mixed content" message in IE?
deesto is offline
Reply With Quote
View Public Profile
 
Old 04-20-2007, 05:38 PM Re: linking to HTTP sites from HTTPS pages
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Quote:
Originally Posted by deesto View Post
Could that trigger this "mixed content" message in IE?
No - But what about your javascripts, do any of them virtually write to the document including an image or something?

Better yet - send a link to the https page
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 04-20-2007, 10:47 PM Re: linking to HTTP sites from HTTPS pages
Average Talker

Posts: 22
Location: NY, USA
Trades: 0
Can't give a link to the site, as it's only accessible internally. But the HTML from the site index page is attached. Maybe you'll see something that I've missed?
Attached Files
File Type: txt home_html.txt (42.7 KB, 1 views)
deesto is offline
Reply With Quote
View Public Profile
 
Old 04-20-2007, 11:04 PM Re: linking to HTTP sites from HTTPS pages
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
The source paths all look good - But take a look at your javascripts too.

Also, I noticed you are including 7 external css files. Do any of these files use a full image path for backgrounds and such? If so, make sure they are a related path (related from the css file) and none are absolute paths (that declare http://)
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 04-21-2007, 11:52 AM Re: linking to HTTP sites from HTTPS pages
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Shouldn't the browser be smart enough to know that this is simply a link, and that the "content" isn't being pulled from another site?
Nope. When the security settings are under the user's control, there's not a whole lot you can do.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-21-2007, 02:01 PM Re: linking to HTTP sites from HTTPS pages
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Just to clear any confusion, an anchor link from a ssl page to a non-ssl page will not generate a "mixed-content" warning to the user, only non-ssl content that is downloaded to be displayed on a ssl page will generate a warning.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 04-21-2007, 06:39 PM Re: linking to HTTP sites from HTTPS pages
Average Talker

Posts: 22
Location: NY, USA
Trades: 0
Quote:
Originally Posted by mgraphic View Post
Just to clear any confusion, an anchor link from a ssl page to a non-ssl page will not generate a "mixed-content" warning to the user, only non-ssl content that is downloaded to be displayed on a ssl page will generate a warning.
That was my understanding as well, but as you see in the source for that page, there aren't any direct links to include any insecure content, only anchored references to off-site pages.

This site is on an open-source CMS called Plone. I'll have to look into this a bit further and ask if anyone's aware whether Plone's JS and other includes are pulled in via HTTP (even on a secure site).
deesto is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to linking to HTTP sites from HTTPS pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32398 seconds with 13 queries