How to prevent other websites putting my web page in their iframes? [duplicate]

ⅰ亾dé卋堺 提交于 2019-12-24 07:18:55

问题


Possible Duplicate:
How to prevent my site page to be loaded via 3rd party site frame of iFrame
How to Block Iframe call

I don't want other website use my website content by iframe


回答1:


Use X-Frame-Options response header, this will tell the browser wether it should show the webpage in a frame or not. E.g.

X-Frame-Options: SAMEORIGIN


来源:https://stackoverflow.com/questions/13757690/how-to-prevent-other-websites-putting-my-web-page-in-their-iframes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!