r/Hacking_Tutorials • • 18h ago

Question Beginner exercise: Compare the requests and responses when viewing the same page logged in versus logged out

If you're learning how authentication actually shows up in traffic, pick any practice site where you can create an account and log in or out.

  1. Open DevTools -> Network and enable Preserve log.
  2. Visit a page while logged out. Find the main request, note the headers (especially Cookie or Authorization) and the response.
  3. Log in, then reload or revisit the exact same page. Locate the new request for that page and compare the headers and response body.
  4. Look for differences in what the server returns (extra data, different status codes, or new cookies being set).
  5. Try the same page again after logging out and see which headers disappear and how the response changes.

Write down which headers seem tied to your session and what content only appears when you're authenticated. Doing this a couple times makes it easier to spot where access controls are enforced.

What was the first header or response difference you noticed between the two states?

9 Upvotes

1 comment sorted by

1

u/Infinite-Dust-8926 10h ago

check is the Cookie or Authorization header