Course Content
Cyber Security Fundamentals
Cyber Security Fundamentals
Challenge: Extracting Security Headers From Website
Swipe to show code editor
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:
- Get a response from the corresponding website using the
.get()
function of therequests
library. - Extract all headers from the response using the
.headers
attribute of theresponse
object. - Return information about corresponding headers from the function using variable names (
csp_header
andhsts_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.
Thanks for your feedback!
Challenge: Extracting Security Headers From Website
Swipe to show code editor
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:
- Get a response from the corresponding website using the
.get()
function of therequests
library. - Extract all headers from the response using the
.headers
attribute of theresponse
object. - Return information about corresponding headers from the function using variable names (
csp_header
andhsts_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.
Thanks for your feedback!
Challenge: Extracting Security Headers From Website
Swipe to show code editor
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:
- Get a response from the corresponding website using the
.get()
function of therequests
library. - Extract all headers from the response using the
.headers
attribute of theresponse
object. - Return information about corresponding headers from the function using variable names (
csp_header
andhsts_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.
Thanks for your feedback!
Swipe to show code editor
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:
- Get a response from the corresponding website using the
.get()
function of therequests
library. - Extract all headers from the response using the
.headers
attribute of theresponse
object. - Return information about corresponding headers from the function using variable names (
csp_header
andhsts_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.