如何保护iframe内容 [英] How to protect iframe content
本文介绍了如何保护iframe内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网站Widget,它是由客户端iframe从其嵌入代码中调用的,我只想保护来自托管网站的iframe内容,以便没有人看到它并复制并粘贴并使其在未经授权的网站上运行< br $> b $ b
我尝试过:
i尝试过加密脚本但是没有完美的工作,很容易被解密
解决方案
你可以看看
Request.UrlReferrer.Authority
以确保请求来自您允许使用小部件的网站。
I have a website Widget that is called by a client side iframe from its embed code i just want to secure iframe content from the hosting site so that no one sees it and copy and paste and make it run on a unauthorized site
What I have tried:
i have tried encrypted scripts but that are not worked perfectly and could easily be decrypted
解决方案
You could look at
Request.UrlReferrer.Authority
to ensure the request is coming from a site you allow the widget to be used on.
这篇关于如何保护iframe内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文