From: "J. Marsden DeLapp" <jmdelapp@delapp.com>
One little twist is that I have weather stickers (images) on my home page that come from http://weathersticker.wunderground.com and consequently that causes a warning that "parts of the page are not secure”.
I ran into this same problem when using mailchimp, which has a nice javascript snippet for displaying mail archives — but which can *only* be retrieved over HTTP. I posted my PHP-based solution to this problem here: http://cantonbecker.com/etcetera/2015/how-to-use-mailchimps-archive-js-code-... You can adopt this work-around yourself. In your own PHP code, you use something like file_get_contents to retrieve your weather sticker content. Then you display it locally instead of via HTTP over the network. This way your web server retrieves the weather sticker via insecure HTTP, but everything between the server and the actual client looking at your web page is still encrypted. For example, you could make a php file on your own server called ‘weatherimage.php’ and its code would be something like: $remoteImage = "http://www.example.com/gifs/logo.gif"; $imginfo = getimagesize($remoteImage); header ("Content-type: $imginfo['mime']"); readfile($remoteImage); And then just <img src=“/weatherimage.php”> in your HTML. That’s my $.02. - Canton -------------------------------------------------------------------- Canton Becker canton@gmail.com • (505) 570-0635 • http://cantonbecker.com
I had the same idea as what Canton came up with but I ended up doing it a bit differently. I set up a cron job to grab the gif via http and then I have a local copy I can serve over https. That still does not fix the underlying issue of using http to grab the image in the first place. Mars -- ============================================================= J. Marsden DeLapp, PE President DeLapp & Associates, Inc. dba DeLapp Engineering. Providing lighting and power planning, design and analysis services for commercial, industrial and large residential facilities. 1190 Harrison Road Ste 3a Santa Fe NM 87507 (505) 983-5557 https://DeLapp.com =============================================================
participants (2)
-
Canton Becker -
J. Marsden DeLapp