# Clickjacking

> What is clickjacking and how do you prevent your site from being used in a clickjacking attack?

Canonical: https://www.internhack.in/learn/interview/web-security/security-clickjacking-protection
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What is clickjacking and how do you prevent your site from being used in a clickjacking attack?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Clickjacking, UI Redressing, X-Frame-Options, CSP frame-ancestors, SameSite Cookies

Previous: [SSRF (Server-Side Request Forgery)](https://www.internhack.in/learn/interview/web-security/security-ssrf-vulnerability) · Next: [Sanitizing vs. Validating](https://www.internhack.in/learn/interview/web-security/security-sanitizing-inputs) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [Broken Access Control](https://www.internhack.in/learn/interview/web-security/security-broken-access-control)
- [Password Complexity](https://www.internhack.in/learn/interview/web-security/security-password-complexity)
- [DoS vs. DDoS](https://www.internhack.in/learn/interview/web-security/security-dos-vs-ddos)
- [Man-in-the-Middle (MITM)](https://www.internhack.in/learn/interview/web-security/security-man-in-the-middle)
- [Homograph Attack](https://www.internhack.in/learn/interview/web-security/security-homograph-attack)
- [The Purpose of Salt](https://www.internhack.in/learn/interview/web-security/security-salting-passwords)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
