Solved

I get a warning that only secure content is showing.  Why would this happen?

Posted on 2014-11-14
6
108 Views
Last Modified: 2015-01-02
I have noticed a couple of times recently when I try to pull up information on our website, I get a warning that only secure content is showing.  Why would this happen?  

My worry is that our visitors might experience the same thing and get frustrated with the site.

thanks.
0
Comment
Question by:koila
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 40442995
Is your website using https? If it is then most likely you have some content on that page that is being delivered using standard http. This typically will come from images, videos, etc that may be hotlinked to using a non-secure connection.

To troubleshoot this I would reccomend using fiddler to trace your HTTP/HTTPS requests to see where you are hitting an unsecure portion.

Download for fiddler
http://www.telerik.com/download/fiddler

And how to enable SSL scanning
http://thetechl33t.com/2014/07/12/decrypting-https-ssltls-tunnels-using-fiddler/
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 40443001
It happens when your site is using the https protocol for secure transmission rather than the http protocol and you have links to pictures, files etc embedded within your html code that is using the http protocol.
You should ensure that you html code is using relative links rather than absolute links and then the problem won't occur.

absolute link:
http:\\www.example.com\mypics\pic1.jpg

relative link :
\mypics\pic1.jpg
0
 
LVL 15

Expert Comment

by:Giovanni Heward
ID: 40443025
absolute link:
http:\\www.example.com\mypics\pic1.jpg

 relative link :
 \mypics\pic1.jpg

Not to be picky, but forward slashes should be used as opposed to back slashes...

absolute link:
http://www.example.com/mypics/pic1.jpg

 relative link :
/mypics/pic1.jpg

For external content, you'll need additional server side code to detect whether the connect is https or http to serve the appropriate correlating link. (e.g. https://youtube.com/example vs. http://youtube.com/example)

Example (PHP):
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
    // HTTPS
    echo '<a href="https://youtube.com/example">https://youtube.com/example</a>';
} else {
   // HTTP
      echo '<a href="http://youtube.com/example">http://youtube.com/example</a>';
}
0
 
LVL 15

Expert Comment

by:Giovanni Heward
ID: 40443047
An easier way would be to download firefox and install firebug.  Then press F12 to activate.  Click on the Net tab and reload your page.  You'll be able to see all requests (HTTPS and HTTP).
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question