0
0
Cybersecurityknowledge~5 mins

HTTP security headers in Cybersecurity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of HTTP security headers?
HTTP security headers help protect websites and users by instructing browsers how to behave securely, such as preventing attacks or data leaks.
Click to reveal answer
intermediate
What does the Content-Security-Policy (CSP) header do?
CSP controls which resources (like scripts or images) a browser is allowed to load, helping to prevent attacks like cross-site scripting (XSS).
Click to reveal answer
beginner
Explain the role of the Strict-Transport-Security (HSTS) header.
HSTS tells browsers to only connect to a website using HTTPS, which keeps data encrypted and safe from eavesdropping.
Click to reveal answer
intermediate
What does the X-Frame-Options header protect against?
It prevents a website from being shown inside a frame or iframe on another site, protecting against clickjacking attacks.
Click to reveal answer
intermediate
Why is the X-Content-Type-Options header important?
It stops browsers from guessing the type of content, which helps prevent some types of attacks by ensuring files are treated as intended.
Click to reveal answer
Which HTTP header forces browsers to use HTTPS connections only?
AStrict-Transport-Security
BContent-Security-Policy
CX-Frame-Options
DX-Content-Type-Options
What attack does the Content-Security-Policy header mainly help prevent?
ACross-Site Scripting (XSS)
BSQL Injection
CPhishing
DDenial of Service
Which header helps prevent clickjacking by controlling framing?
AX-Content-Type-Options
BStrict-Transport-Security
CX-Frame-Options
DContent-Security-Policy
What does the X-Content-Type-Options header do?
APrevents framing
BEnforces HTTPS
CBlocks scripts from unknown sources
DPrevents MIME type sniffing
Which header would you use to specify allowed sources for scripts and images?
AX-Frame-Options
BContent-Security-Policy
CStrict-Transport-Security
DX-Content-Type-Options
Describe the main HTTP security headers and their roles in protecting a website.
Think about how each header helps stop a specific type of attack or risk.
You got /4 concepts.
    Explain why using HTTP security headers is important for website security.
    Consider the benefits of instructing browsers on safe behavior.
    You got /4 concepts.