Prevent iframe stealing

前端 未结 6 1673
陌清茗
陌清茗 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:10

    Use the same method that I suggested here: How to limit display of iframe from an external site to specific domains only

    In a nut shell, you add a PHP script in every page (in your case it will probably be just one, assuming it is a template), this script limits the viewing to one (or more) reffering domains.

    This method is better than a javascript method because the users might have it disabled.

提交回复
热议问题