Content Security Policy (CSP)
advancedDefinition
A 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.
In the wild
A bank's site tells the browser to run scripts only from the bank's own address, so when an attacker sneaks in a script hosted somewhere else, the browser refuses to run it.
More from Security
CSRF (Cross-Site Request Forgery)
An 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)
An attack where thousands of computers flood a website with fake visits at once so real visitors can't get through.
Encryption vs Hashing
Encryption 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
The 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
Checking 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)
Logging in with a second proof of identity on top of your password, such as a code from your phone or a fingerprint.