gpt4 book ai didi

html - 如何判断一个网站是HTTP还是HTTPS?

转载 作者:可可西里 更新时间:2023-11-01 16:49:56 29 4
gpt4 key购买 nike

如何判断一个站点是 HTTP://站点还是 HTTPS://站点?我刚刚开始学习一些关于互联网安全的更基本的东西。当您建立一个网站时,是否有一种特殊的方法必须在 .html 文件中设置 html 格式,以便该网站是安全的,或者这是可以从您托管网站的网站提供商处购买的东西.

这看起来很简单,但即使在 stackoverflow 上输入的内容也是

    stackoverflow.com/questions/ask

互联网地址前没有 HTTP 或 HTTPS。这是暗示还是有办法在工具中打开或关闭它?

HTML代码:

<html lang="en">
<head>
<title>Test Title</title>
</head>
<body>
//...code goes here...
</body>
</html>

HTML 中是否包含某些内容来确定站点是否安全?或者这是您托管网站时每个页面上的一个选项。

最佳答案

How do you tell if a site is an HTTP:// site or an HTTPS:// site?

通过查看 URL

This seems like and easy thing to do but even on stackoverflow what it type in is

如果您输入的内容看起来像是缺少架构的 URL,那么浏览器会假定您打算将 http:// 放在它的前面。

对于非 SSL 站点,大多数浏览器会隐藏地址栏中的 http:// 部分。

When you put up a web site is there a special way that you have to set up the html format in the .html files so that the site is secure or is this something that can be purchased from the site provider were you host the web site.

要使用 SSL,您需要拥有 SSL 证书,并且需要配置 Web 服务器以使用它。

除此之外,一切都取决于服务器的配置方式。您可以在 http 和 https 上托管不同的站点,或者在同一站点上托管,或者从一个站点重定向到另一个站点,等等。

Is there something that goes in the HTML that determines whether the site is secure or not?

没有。 SSL 在传输级别处理,而不是文档级别。

Or is this an option on each page when you host the site.

您可以将服务器配置为将某些页面的 URL 重定向到 HTTPS,而将某些页面的 URL 重定向到 HTTP。这样做通常是为了节省不需要安全性的页面的 CPU 资源。如今,CPU 功率便宜得多,因此默认使用 SSL 通常更好。

关于html - 如何判断一个网站是HTTP还是HTTPS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24636349/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com