开发者

is it possible to track ip or traffic from 3rd party using iframe

i have a 开发者_运维问答website and i'm wondering if it is possible to track with some type of coding to see if someone is placing my website into an iframe and displaying it on their site? i have checked my log in the cpanel and nothing is there but when i go to this other website clearly they are iframing my site. I am aware of JavaScript to make it pop out of the iframe but for my site i cant use this. thanks again.


Yes, that is possible, by add some js code into your page like this:

if(self != top){
   //js code to track it
}


You can read the article on Wikipedia about Framekiller. You'll learn how you can detect that your site has been embedded in an iframe but also that there are solutions to counter it: Framekiller Killer

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜