스파르타 spring 2기 TIL day4

fart man·2025년 11월 26일

내가 주소창에 적고 있는게 뭐징

www.google.com

저걸 뭐라고 부르면 좋을까?

나는 저걸 origin, domain, site, 섞어서 불렀는데 알고 보니까 셋다 다른 용어다! (오늘 첨 알았다 ㅠㅠ)

origin-domain-site

https://web.dev/articles/same-site-same-origin
https://www.michalspacek.com/origin-site-etld-etld-plus-one-public-suffix-psl-what-are-they

domain

domain은 www.google.com을domain 이라고 한다.

orign

origin은 sheme(https://), domain(www.google.com), port(:6969) 의 합을 origin 이라고 한다.

https://www.google.com:6969 이origin이다.

site

내가 register 할수 있는 domain을 registerable domain이라고 한다. 내위에 있는 domain을 eTLD라고 한다. Top Level Domain이라고 하지 않고 effective Top Level Domain이라고 하는 이유는 register할 수 있는 도메인 바로 위에 있는 도메인이긴 한데 실제로 top domain이 아닐 수도 있기 때문이다.

site는 이 registerable domain과 scheme의 조합이다.

https://www.google.com:6969이 site 이다.

0개의 댓글