Welcome to WebmasterWorld Guest from 50.17.74.162

Forum Moderators: open

Message Too Old, No Replies

Logging the websites that frame my pages

     

zerillos

7:23 pm on Dec 22, 2011 (gmt 0)

5+ Year Member



Do you guys know of technically viable method of logging all the websites that frame (iframe) my pages?

Thanks!

Dijkgraaf

9:12 pm on Dec 22, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could add a snippet of JavaScript to a page, similar to a frame buster scripts that detects it is being framed and then take action so that it is logged.

Recent thread about Google Images and frame busting [webmasterworld.com...]
and publication about framebusting [webmasterworld.com...] PDF 1,106KB)

DeeCee

2:02 am on Dec 23, 2011 (gmt 0)



Many/Most browsers adhere to this code line like the below, which I add in my headers:

    <meta http-equiv="Window-Target" content="_top" />

For browsers that follow the Window-Target order, it should hopefully break out of the frame.
Easy to try out. Insert the header, and go to a site you have found to frame your stuff.

Best thing... No dependence on JavaScript.

zerillos

8:09 am on Dec 23, 2011 (gmt 0)

5+ Year Member



@ Dijkgraaf. i figured that too, but how do i actually send the info back to my server? Send an email? Can i call a php script from javascript? (Its more of a technical problem...)

@ DeeCee. I believe that in many cases that will result in a blank page being displayed in the iframe (i might be wrong).

zerillos

8:38 am on Dec 23, 2011 (gmt 0)

5+ Year Member



in fact, I could rephrase my question.

what methods are there for sending info from the JavaScript back to the server (sorry if it's a trivial question. i'm not very familiar with javascript)