Frame protection (X-Frame-Options, frame-ancestors)
Në shqip: Mbrojtja nga vendosja në iframe
ShpjegimiSQ
Që faqja jote të mos futet në iframe të një faqeje të huaj (për clickjacking), dërgo header-in X-Frame-Options: DENY ose CSP frame-ancestors 'none'. Një rresht i vetëm, mbrojtje e plotë.
EnglishEN
To stop your page being embedded in another site's iframe (for clickjacking), send the X-Frame-Options: DENY header or CSP frame-ancestors 'none'. One line, complete protection.
Si ta mendosh
Si të ndalosh që dikush të vendosë dritaren tënde brenda shtëpisë së tij.
Lexoje në anglisht
Like stopping someone mounting your window inside their own house.
Shembull kodihttp
Content-Security-Policy: frame-ancestors 'none'