Firefox:“此页面的某些部分不安全,例如图像."什么算不安全? [英] Firefox: "Some parts of this page are not secure, such as images." What counts as insecure?

查看:1078
本文介绍了Firefox:“此页面的某些部分不安全,例如图像."什么算不安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用浏览器Firefox,有时在某些网页上,SSL图标显示此页面的某些部分不安全,例如图像".究竟什么才算不安全?

I use the browser Firefox, and sometimes, on certain webpages, the SSL icon says "Some parts of this page are not secure, such as images." What, exactly, counts as an insecure element?

谢谢!

推荐答案

通过不安全的渠道提供的任何内容.

Anything that is delivered over an insecure channel.

这通常意味着网页的开发人员正在同一页面中组合基于HTTP的URL和基于HTTPS的URL.这些URL可以用于图像以及JavaScript,CSS或可以从网页引用的任何其他内容.作为用户,您对此无能为力-警告您,您的数据有可能以开放,未加密的方式通过Internet传递到其他服务器.这是一件坏事,但是除了避开该网站,或者与该网站的支持人员或网站管理员联系,您无能为力.

What this generally means is that the developer of the web page is combining HTTP-based URLs with HTTPS-based URLs in the same page. The URLs could be for images as well as JavaScript, CSS, or anything else that can be referenced from a web page. As a user, there's not much you can do about this -- it's a warning that there is a possibility that your data could be delivered to other servers in an open, unencrypted manner over the Internet. This is a Bad Thing, but you can't do much except avoid that site, or contact the support or webmaster for the site.

如果您是开发人员,则在大多数情况下,您可以在引用图像或javascript等时使用相对于方案的URL.

If you're the developer, most of the time you can use a scheme-relative URLs when referencing images or javascript, etc.

即代替这个:

<img src="http://example.com/dot.png">

使用此:

<img src="//example.com/dot.png">

YMMV.

另请参阅: https://url.spec.whatwg.org/

这篇关于Firefox:“此页面的某些部分不安全,例如图像."什么算不安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆