Forum Moderators: open

Message Too Old, No Replies

Code for keeping from being Framed

Any impact on how SEs see you?

         

cyberfyber

6:21 pm on Mar 29, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



Greetings,

I made use long ago of this code I got from an NG on how to stop this site from framing a page of mine. Why they did it, and why that particular page, I've no idea. 'was probably harmless on their part.

Now I'd like to use this for another site's Homepage which someone else is Framing. Any chances this would hurt me with the SEs? The code follows:

<script type="text/javascript">
if (window.location!= top.location) {
window.location = "http://";
}
</script>

tedster

6:52 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I put that kind of javascript in an external file, and I use it on some pages that rank extremely well.

cyberfyber

6:58 pm on Mar 29, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hmmm, thanks tedster,

'will do.

Just a bit tired of folks framing my stuff -- and concerned that some SEs might see it as Spamming.

tedster

2:43 am on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sure -- on the surface it might look like a sneaky redirect. I don't think that's currently a problem, but you never know what might trigger a filter/penalty at some point. Currently a lot of really sneaky redirects do slip into the SERPs.

I make a conscious effort never to redirect ALL traffic -- but in this case, with an "if" statement and putting the whole thing into an external file, I don't think there's a problem. At least, I've never noticed one. It is, after all, NOT an attempt to manipulate.

martinibuster

2:56 am on Mar 31, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You may want to try this code:
if (self!= top) top.location.replace(self.location);

I've never had a problem with it.