Solved

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

Posted on 2014-11-14
6
96 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
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Re-imbursement Claim System 3 72
Video on my site 4 73
chrome and edge version of getElementById("p").attributes("title").value 2 35
Google Chrome new tab content. 5 17
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

792 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