Security
Common attacks on websites and the everyday defenses that stop them
Content Security Policy (CSP)
advancedA list of approved sources a website gives the browser, saying where scripts, images, and fonts may load from, so the browser refuses anything from elsewhere.
CSRF (Cross-Site Request Forgery)
advancedAn attack where a malicious website quietly makes your browser send a request to another site you are logged into, so that site thinks you asked for it.
DDoS (Distributed Denial of Service)
beginnerAn attack where thousands of computers flood a website with fake visits at once so real visitors can't get through.
Encryption vs Hashing
intermediateEncryption scrambles data so anyone with the right key can unscramble it later, while hashing turns data into a fingerprint that can't be turned back into the original.
HTTPS / TLS
beginnerThe technology behind the padlock in your browser's address bar, which encrypts traffic between you and a website and confirms the site is the one it claims to be.
Input Sanitization
intermediateChecking and cleaning what people type before an app uses it, such as removing characters that aren't allowed or rejecting values in the wrong format.
Multi-Factor Authentication (MFA)
beginnerLogging in with a second proof of identity on top of your password, such as a code from your phone or a fingerprint.
OWASP Top 10
intermediateA regularly updated list of the ten most common and serious security risks for websites and web apps, published by the nonprofit OWASP Foundation.
Principle of Least Privilege
beginnerGiving every person, app, and tool only the permissions it needs for its job and nothing more, so a mistake or a stolen account can do less damage.
Same-Origin Policy
intermediateA built-in browser rule that stops a web page from reading data that belongs to a different website.
Secrets Management
beginnerThe habits and tools for keeping passwords, API keys, and other secret values out of code, chats, and logs, and replacing any that leak.
SQL Injection
intermediateAn attack where someone types database commands into an ordinary form field, and a poorly built site runs them against its database.
XSS (Cross-Site Scripting)
intermediateAn attack where someone hides harmful code in content on a trusted site, such as a comment, so it runs in the browser of everyone who views it.
Zero Trust
intermediateA security approach where no person or device is trusted automatically, even inside the company network, so every important action has to prove who is asking and whether they're allowed.