Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 1 KB

109.md

File metadata and controls

24 lines (23 loc) · 1 KB
  1. Go to the given site and inspect it.
  2. Get the user-agent from the HTML comments.
  3. Make a GET request:
    • Using Postman, Thunder Client, or similar; setting HTTP Header User-Agent: <user-agent>
    • Use the following curl command:
      curl -H "User-Agent: <user-agent>" <given site>
    • Use the following curl command:
      curl --user-agent <user-agent> <given site>
  4. Note the referer from the above response and send another request with that in header:
    • Using Postman, Thunder Client, or similar; setting HTTP Header User-Agent: <user-agent> Referer: <referer>
    • Use the following curl command:
      curl -H "User-Agent: <user-agent>" -H "Referer: <referer>" <given site>
    • Use the following curl command:
      curl --user-agent <user-agent> --referer <referer> <given site>