Is the URL fragment identifier sent to the server? [duplicate]

别等时光非礼了梦想. 提交于 2019-12-17 05:11:46

问题


Possible Duplicate:
Can PHP read the hash portion of the URL?

The (famous?) web site mega.co.nz uses a hash mark in URLs to link to encrypted files; the portion of the URL after the hash mark contains a password, and encryption is claimed to happen on the client side. It is certainly feasible to use javascript for client-side encryption but … isn't the URL sent to the server, thus revealing the password to the server itself?

The URL looks like

https://example.com/#!encryptedfilename_password

回答1:


Fragment identifiers are not sent to the server. The hash fragment is used by the browser to link to elements within the same page.



来源:https://stackoverflow.com/questions/14462218/is-the-url-fragment-identifier-sent-to-the-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!