网址“https://www.gooogle:[email protected]”的不同部分的标签

问题描述 投票:1回答:2

我对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?和其他资源。

url terminology
2个回答
0
投票

根据current URI standard的术语:

  • httpsscheme组件。
  • www.gooogle:[email protected]authority组件。 www.gooogle:comuserinfo子组件(其中“www.gooogle”可以是用户名,“com”可以是密码)。 home.htmlhost子组件(其中“home”可能是二级域名,“html”可能是顶级域名)。 (port子组件为空。)
  • path组件是空的。)
  • query组件不存在。)
  • fragment组件不存在。)

类似于此的网址通常用于phishing尝试,希望用户获得链接指向域google.com而不是域home.html的印象。但对于这种恶意案件,URL可能是https://[email protected]


0
投票

干得好。每个域,在这种情况下(谷歌),作为注册管理机构运营商,在这种情况下是“.com”。

              host          path       fragment 
          ┌────┴────────┐ ┌───┴───┐     ┌─┴┐
  https://[email protected]?id=1#asc
  └─┬─┘ └───────┬──────────────────┘└─┬┘ 
protocol    authority               query  
© www.soinside.com 2019 - 2024. All rights reserved.