友好 URL 在 HTTPS 下是否安全?

发布于 2024-10-20 06:48:46 字数 348 浏览 2 评论 0原文

我知道带参数的查询在 HTTPS 下受到保护,例如 https://encrypted.google.com/search ?q=stackoverflow

但是像 twitter 这样的友好 URL 又如何呢,https://twitter.com /#!/search/stackoverflow ,这是否安全且不会被任何人拦截?

问候,

I know that query with parameters are secured under HTTPS, e.g. https://encrypted.google.com/search?q=stackoverflow

But what about the friendly URLs like twitter, https://twitter.com/#!/search/stackoverflow , is this secure and can't be intercepted by anyone?

Regards,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぽ尐不点ル 2024-10-27 06:48:46

;通过 HTTPS 传输时,整个 URL 都会被加密,无论其内容是什么;而且,无论请求是正常的还是AJAX的,都没有关系。

(HTTP 规范中没有任何类似“友好 URL”或“敌意 URL”或“中性 URL”的内容,只有 URL。协议本身完全不知道服务器对 URL 进行的处理 - “友好 URL”只是一种方便的说法是“对于人类来说有点容易掌握的 URL”;这与底层协议无关,客户端向服务器发送 URL 请求。服务器返回响应。只要 URL 格式有效,其内容就无关紧要)

(旁白:#(片段)之后的部分是客户端的,因此不会传输。完全在请求中;无论处理发生在客户端,可能是使用 AJAX)

Yes; the entire URL is encrypted when transmitted over HTTPS, no matter what its contents are; also, it doesn't matter if the request is normal or AJAX.

(there is nothing like "friendly URLs" or "hostile URLs" or "neutral URLs" anywhere in the HTTP spec, just URLs. The protocol itself is completely oblivious to what processing the server does with the URL - "friendly URLs" is just a convenient way of saying "URLs that are somewhat easy to grasp for humans"; this has no bearing on the underlying protocols. For HTTP, the client sends a request for an URL to a server, and the server gives back a response. As long as the URL is in a valid format, its content is immaterial. )

(aside: the part after the # (fragment) is client-side and as such not transmitted in requests at all; whatever processing is done on that happens on the client side, possibly with AJAX)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文