Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Extracting Security Headers From Website | Web Cyber Security
Cyber Security Fundamentals

Challenge: Extracting Security Headers From WebsiteChallenge: Extracting Security Headers From Website

Task

This task aims to create a function that extracts specific security headers from a given website. By analyzing the extracted headers, you can assess the web application's security posture. This includes understanding how the application is configured to handle security-related aspects.
Your task is to:

  1. Get a response from the corresponding website using the .get() function of the requests library.
  2. Extract all headers from the response using the .headers attribute of the response object.
  3. Return information about corresponding headers from the function using variable names (csp_header and hsts_header).

Note

The objective of this assignment is to gain familiarity with the process of extracting headers. The analysis of header content falls outside the scope of this course.

Everything was clear?

Section 2. Chapter 8
toggle bottom row
course content

Course Content

Cyber Security Fundamentals

Challenge: Extracting Security Headers From WebsiteChallenge: Extracting Security Headers From Website

Task

This task aims to create a function that extracts specific security headers from a given website. By analyzing the extracted headers, you can assess the web application's security posture. This includes understanding how the application is configured to handle security-related aspects.
Your task is to:

  1. Get a response from the corresponding website using the .get() function of the requests library.
  2. Extract all headers from the response using the .headers attribute of the response object.
  3. Return information about corresponding headers from the function using variable names (csp_header and hsts_header).

Note

The objective of this assignment is to gain familiarity with the process of extracting headers. The analysis of header content falls outside the scope of this course.

Everything was clear?

Section 2. Chapter 8
toggle bottom row
some-alt