在https页面上显示feed.mikle.com小部件

时间:2014-09-25 07:05:22

标签: php rss feed

我正在使用feed.mikle.com小部件在我的网页上显示Google新闻。

我的Google新闻网址为https://news.google.com/news/feeds?output=rss&q=India

feed.mikle.com提供的代码是

    <!-- start feedwind code -->
<script type="text/javascript">document.write('<script type="text/javascript" src="' + ('https:' == document.location.protocol ? 'https://' : 'https://') + 'feed.mikle.com/js/rssmikle.js"><' + '/script>');</script><script type="text/javascript">(function() {var params = {rssmikle_url: "https://news.google.com/news/feeds?output=rss&q=India",rssmikle_frame_width: "300",rssmikle_frame_height: "400",rssmikle_target: "_blank",rssmikle_font: "Arial, Helvetica, sans-serif",rssmikle_font_size: "13",rssmikle_border: "off",responsive: "on",rssmikle_css_url: "",text_align: "left",text_align2: "left",corner: "off",scrollbar: "on",autoscroll: "off",scrolldirection: "up",scrollstep: "3",mcspeed: "20",sort: "New",rssmikle_title: "on",rssmikle_title_sentence: "In the news",rssmikle_title_link: "",rssmikle_title_bgcolor: "#282929",rssmikle_title_color: "#FFFFFF",rssmikle_title_bgimage: "",rssmikle_item_bgcolor: "#FFFFFF",rssmikle_item_bgimage: "",rssmikle_item_title_length: "150",rssmikle_item_title_color: "#B80404",rssmikle_item_border_bottom: "on",rssmikle_item_description: "on",item_link: "off",rssmikle_item_description_length: "325",rssmikle_item_description_color: "#666666",rssmikle_item_date: "gl1",rssmikle_timezone: "Etc/GMT",datetime_format: "%b %e, %Y %l:%M:%S %p",item_description_style: "text+tn",item_thumbnail: "full",article_num: "15",rssmikle_item_podcast: "off",keyword_inc: "",keyword_exc: ""};feedwind_show_widget_iframe(params);})();</script><div style="font-size:10px; text-align:center; "><a href="https://feed.mikle.com/" target="_blank" style="color:#CCCCCC;">RSS Feed Widget</a><!--Please display the above link in your web page according to Terms of Service.--></div><!-- end feedwind code -->

我的问题是我的网页是安全页面(https),而小工具提供的链接和图片都有http,for example

如何确保这些网址的安全。

谢谢

1 个答案:

答案 0 :(得分:0)

你不能。托管在HTTP服务器上的内容在前往用户的途中根本不加密。内容的持有者(在您的情况下可能是提供图像的报纸)需要将其放在HTTPS服务器上。你不能&#34;转换&#34; HTTP到HTTPS或类似的东西,除非您下载所有这些图像并将其托管在服务器上。但是它们仍然不会被使用,因为谷歌的RSS源不会指向您的服务器来加载图像。