bigu_c
August 13, 2013, 1:53am
1
Hello,
Currently I’m using this code to break iframe:
<script language="JavaScript" type="text/javascript"><!--
if (top.location != self.location) top.location = "";
//--></script>
But that code make my site loaded then redirect to my site.
I saw some sites using this (I checked by viewing source code):
<script type="text/javascript">
if (top.location != self.location)
top.location.replace(self.location);
PHPSESSID = 'leg64j7u0db185qjkps8vum7o0';
</script>
Can anyone tell me what PHP they’re using in this case?
Thanks.
bigu_c:
Hello,
Currently I’m using this code to break iframe:
<script language="JavaScript" type="text/javascript"><!--
if (top.location != self.location) top.location = "";
//--></script>
But that code make my site loaded then redirect to my site.
I saw some sites using this (I checked by viewing source code):
<script type="text/javascript">
if (top.location != self.location)
top.location.replace(self.location);
PHPSESSID = 'leg64j7u0db185qjkps8vum7o0';
</script>
Can anyone tell me what PHP they’re using in this case?
Thanks.
There is no PHP code there only JavaScript - you can’t see PHP using view source. If PHP was used to generate the JavaScript there’s no way to tell what code is being used.
bigu_c
August 13, 2013, 7:12am
3
I don’t know PHP coding, but I saw this line:
PHPSESSID = 'leg64j7u0db185qjkps8vum7o0';
So they can use PHP Session for this case.