Solved

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

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

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 14

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

705 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now