Possible to prevent our website from running inside another domain's frameset or IFrame?

后端 未结 4 619
醉梦人生
醉梦人生 2021-02-09 17:05

We\'ve been having an problem recently where other sites are running our e-commerce site inside a frameset where our site (with the offenders affiliate id tacked on) is the only

4条回答
  •  天涯浪人
    2021-02-09 17:30

    Just guessing here...but what if you use javascript to call your parent window to access its document object ? You could check if its not null, and if there is a parent window (meaning a frame loaded your site), you could hide all your html through javascript...

提交回复
热议问题