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
course content

Course Content

Cyber Security Fundamentals

Cyber Security Fundamentals

1. Introduction to Cyber Security
2. Web Cyber Security
3. Information Encryption

bookChallenge: 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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 8
toggle bottom row

bookChallenge: 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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 8
toggle bottom row

bookChallenge: 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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 8
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt