Difficulty: Intermediate
How to prevent Clickjacking?
Use the `X-Frame-Options: DENY` header or `Content-Security-Policy: frame-ancestors` to prevent your site from being nested in an iframe.
Clickjacking, UI Redressing, Iframe, X-Frame-Options
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.