What this track covers
The web is the part of the internet most people use, and the part attackers aim at most. Five lessons:
- From URL to page (this lesson): the whole trip, and how to watch it.
- HTTP up close: requests, responses, status codes, and server logs.
- HTML, browsers, and search engines: what a page is made of, and how pages get found.
- Cookies and sessions: how a website remembers you, and how that gets stolen.
- Wrap-up: you trace one real page load from end to end.
Reading a URL
A URL is the full address of something on the web. Take this one apart:
https://shop.example.com:443/products/shoes?color=blue#reviews
httpsis the scheme: the protocol to use.httpsmeans HTTP over an encrypted connection.shop.example.comis the host. The part that matters most is the end:example.comis the domain, andshopis a subdomain of it.443is the port (Networking Lesson 3). It is usually left out, because 443 is the default forhttpsand 80 forhttp./products/shoesis the path: which page or file on that server.?color=blueis the query string: extra values sent to the server.#reviewsis the fragment: a spot inside the page. It is never sent to the server.
The trip, step by step
When you press Enter on a URL, roughly this happens:
- DNS: the browser looks up the host’s IP address (Networking Lesson 4).
- TCP: it opens a connection to that address on port 443, with the three-way handshake.
- TLS: it sets up encryption and checks the site’s certificate (Security Concepts Lesson 3).
- HTTP request: it asks for the path, for example
GET /products/shoes. - HTTP response: the server answers with a status code and the page’s HTML (Lesson 2).
- More requests: the HTML mentions images, styles, scripts, and fonts, often from other domains. The browser fetches each one.
- Rendering: the browser builds the page you see, and runs its scripts.
A single page often needs dozens or hundreds of requests. Many go to other companies: content delivery networks, analytics, ads, fonts. Every one of those is a domain your browser trusted on that site’s behalf.
Hands-on: watch a page load
Every browser has developer tools (DevTools) built in. Open them with F12, or Ctrl+Shift+I on Windows and Linux, or Cmd+Option+I on macOS. Then:
- Click the Network tab.
- Visit
https://example.com. - Look at the list. Each row is one request. Note the Status, Type, and Domain (or Name) columns.
example.com is tiny: one or two requests. Now keep DevTools open and visit a big news or shopping site you use.
Write down:
- How many requests the page made (the count is at the bottom of the Network tab).
- How many different domains appear. Some tools let you add a Domain column by right-clicking the column headers.
- One domain you do not recognize. Look up what it is.
What to notice
- A URL has a scheme, host, port, path, query, and fragment. The domain at the right end of the host is what matters for trust.
- One page load is DNS, TCP, TLS, then many HTTP requests, often to many other domains.
- DevTools’ Network tab shows every request your browser makes. Defenders and developers both live in it.