URL "https://www.gooogle:com@home.html" 不同部分的标签
Labels for the different parts of the URL "https://www.gooogle:com@home.html"
我对 URL 的部分标签有疑问,想澄清我的理解。
https://www.gooogle:com@home.html
我有:
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
我参考了此 post What do you call the entire first part of a URL? 和其他资源。
给你。每个域,在本例中 (google),作为注册运营商,在本例中是“.com”。
host path fragment
┌────┴────────┐ ┌───┴───┐ ┌─┴┐
https://www.gooogle.com@home.html?id=1#asc
└─┬─┘ └───────┬──────────────────┘└─┬┘
protocol authority query
基于current URI standard的术语:
https
是 scheme 分量。
www.gooogle:com@home.html
是 authority 分量。
www.gooogle:com
是 userinfo 子组件(其中“www.gooogle”可以是用户名,“com”可以是密码)。
home.html
是 host 子组件(其中“home”可能是二级域名,“html”可能是顶级域名域)。
(port 子组件为空。)
(path 组件为空。)
(query组件不存在。)
(fragment组件不存在。)
与此类似的 URL 通常用于 phishing 尝试,希望用户得到的印象是 link 通向域 google.com 而不是域 home.html。但对于此类恶意案例,URL 可能会是 https://www.google.com@home.html
。
我对 URL 的部分标签有疑问,想澄清我的理解。
https://www.gooogle:com@home.html
我有:
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
我参考了此 post What do you call the entire first part of a URL? 和其他资源。
给你。每个域,在本例中 (google),作为注册运营商,在本例中是“.com”。
host path fragment
┌────┴────────┐ ┌───┴───┐ ┌─┴┐
https://www.gooogle.com@home.html?id=1#asc
└─┬─┘ └───────┬──────────────────┘└─┬┘
protocol authority query
基于current URI standard的术语:
https
是 scheme 分量。www.gooogle:com@home.html
是 authority 分量。www.gooogle:com
是 userinfo 子组件(其中“www.gooogle”可以是用户名,“com”可以是密码)。home.html
是 host 子组件(其中“home”可能是二级域名,“html”可能是顶级域名域)。(port 子组件为空。)
(path 组件为空。)
(query组件不存在。)
(fragment组件不存在。)
与此类似的 URL 通常用于 phishing 尝试,希望用户得到的印象是 link 通向域 google.com 而不是域 home.html。但对于此类恶意案例,URL 可能会是 https://www.google.com@home.html
。