BlankCanvas
Technical User
Hi,
I have a simple frame buster script as follows:
<script language="JavaScript">
<!-- Hide from old browsers
if (self.parent.frames.length != 0){
self.parent.location=document.location;
}
// end hide -->
</script>
It works just great on my pages (which are PHP) but I would really like to know which sites are trying to load my pages in frames. Which I can log and monitor in PHP which I understand better then JavaScript.
What I would really like to do is find out if the "document.location" URL value contains a GET value of "?username=johndoe" for example and if so append the value of "&FrameBusted=Yes". and if the URL does not contain any GET values add "?FrameBusted=Yes" as it would be the first get value and needs a ? over the &.
If someone can help me on this I would really appreciate it.
Thanks
Stephen
I have a simple frame buster script as follows:
<script language="JavaScript">
<!-- Hide from old browsers
if (self.parent.frames.length != 0){
self.parent.location=document.location;
}
// end hide -->
</script>
It works just great on my pages (which are PHP) but I would really like to know which sites are trying to load my pages in frames. Which I can log and monitor in PHP which I understand better then JavaScript.
What I would really like to do is find out if the "document.location" URL value contains a GET value of "?username=johndoe" for example and if so append the value of "&FrameBusted=Yes". and if the URL does not contain any GET values add "?FrameBusted=Yes" as it would be the first get value and needs a ? over the &.
If someone can help me on this I would really appreciate it.
Thanks
Stephen