I've just discovered someone is using iframe to put part of my site onto theirs. Is their any way of stopping them from doing this, as I do not think I am getting any benefit from it, just lost bandwidth?
this happened to me once before, what i did was rename the page they are framing, and then on the page they are framing put a link to my site and put adsense code in.
You may also check the referrer, and if the referer is the page that loads your page in a frame, serve something else.... like an ad
Thanks for the advice. kjewat, I think I understand what you are getting it, but I don't know how to do it. I'd rather not rename the page if possible; there are a number of links out there to it, and I'm not sure I know them all.
if your webserver supports php (it most likely does) you can do something like this: <?php if(strstr($_SERVER['HTTP_REFERER'],"pagethatframesyou.com")){ //print any code you want here... echo '<a href="click url" target="_top"><img src="image url"></a>'; exit; } ?> PHP: If you would rather just break the frame, take a look at this page If you go for the frame breaker you will probably "steal" the visitor of the page that is displaying the frame