1

I have a question on the labeling of parts of a URL and would like to clarify my understanding.

https://www.gooogle:com@home.html

What I have:

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   

I've referred to this post What do you call the entire first part of a URL? and other resources.

unor
  • 92,415
  • 26
  • 211
  • 360
Anon Li
  • 561
  • 1
  • 6
  • 18

2 Answers2

0

Here you go. Every domain, in this case (google), as a registry operator which in this case is the ".com".

              host          path       fragment 
          ┌────┴────────┐ ┌───┴───┐     ┌─┴┐
  https://www.gooogle.com@home.html?id=1#asc
  └─┬─┘ └───────┬──────────────────┘└─┬┘ 
protocol    authority               query  
mindmaster
  • 1,828
  • 12
  • 22
0

Based on the terminology of the current URI standard:

  • https is the scheme component.

  • www.gooogle:com@home.html is the authority component.

  • www.gooogle:com is the userinfo subcomponent (where "www.gooogle" could be the username, and "com" could be the password).

  • home.html is the host subcomponent (where "home" could be the second-level domain, and "html" could be the top-level domain).

  • (The port subcomponent is empty.)

  • (The path component is empty.)

  • (The query component doesn’t exist.)

  • (The fragment component doesn’t exist.)

A URL similar to this is often used for phishing attempts, in the hope that users get the impression the link leads to the domain google.com instead of the domain home.html. But for such malicious cases, the URL would probably be https://www.google.com@home.html instead.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360