Prevent iframe stealing

前端 未结 6 1681
陌清茗
陌清茗 2020-12-05 20:37

I think someone is stealing my content using an iframe. My website is a forum and a user has just reported them to me.

How can I find their website programmatically

6条回答
  •  情话喂你
    2020-12-05 21:11

    You can prevent other websites from framing your data using a Content Security Policy header e.g. frame-ancestors 'none'; will block every website from embedding your content in an iframe on their site https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors

提交回复
热议问题