Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sanqui
· 11y ago · 0 comments
You can serve an X-Frame-Options:"DENY" (or "SAMEORIGIN") header to prevent browsers from loading the iframes.
Comments
[–]
sunflowerdeath
11y ago
But this is a response header, so server shoud respond and that is the goal of attack. Browser doesn't send any request headers saying that site is opened in the iframe.
[–]
sanqui
OP
11y ago
Sure, but at least the browser won't render the page, so it won't download the additional content like images and scripts. It's partial mitigation.