我对URL的部分标签有疑问,并希望澄清我的理解。
https://www.gooogle:[email protected]
是)我有的:
https - protocol/scheme
www - sub-domain (?)
google - username
www.gooogle - query string
google.com - domain
home.html - file
com - top level domain
home - query string (?)
html - fragment (I don't think so?)
home.html - file
我已经提到过这篇文章What do you call the entire first part of a URL?和其他资源。
根据current URI standard的术语:
https
是scheme组件。www.gooogle:[email protected]
是authority组件。
www.gooogle:com
是userinfo子组件(其中“www.gooogle”可以是用户名,“com”可以是密码)。
home.html
是host子组件(其中“home”可能是二级域名,“html”可能是顶级域名)。
(port子组件为空。)类似于此的网址通常用于phishing尝试,希望用户获得链接指向域google.com而不是域home.html的印象。但对于这种恶意案件,URL可能是https://[email protected]
。
干得好。每个域,在这种情况下(谷歌),作为注册管理机构运营商,在这种情况下是“.com”。
host path fragment
┌────┴────────┐ ┌───┴───┐ ┌─┴┐
https://[email protected]?id=1#asc
└─┬─┘ └───────┬──────────────────┘└─┬┘
protocol authority query