How the Web Actually Works
DNS resolves a name, TCP carries bytes, TLS protects the channel, HTTP carries meaning. Every web vulnerability lives somewhere in that chain.
A browser asks DNS for an address, opens a TCP connection, negotiates TLS, then sends an HTTP request. The server returns a status, headers and a body. Cookies, cache and proxies sit around that exchange.
The same-origin policy decides which documents may read which responses. It is a browser rule, not a server rule. CORS, cookies, frames and WebSockets are all exceptions or extensions around it.
When you test a request, separate the transport question (who is talking), the identity question (who is the caller) and the authorization question (may this caller do this action). Most findings come from one of those three being confused.
Key ideas
- DNS name → IP → TCP port → TLS → HTTP request
- Status codes and headers are part of the attack surface
- Same-origin policy governs reading, not sending
- Authentication answers who; authorization answers what
Checkpoint
Open a site in your browser, identify the request method, status, cookies and one security header. Explain what each one protects.