Forum Moderators: open

Message Too Old, No Replies

Javascript Framebusting

Could this cause problems with search engines?

         

twist

7:39 pm on Mar 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I tried asking this question in the javascript forum but recieved no replies. There isn't a forum for general search engine questions so i'll try the yahoo search engine forum. Anyway, here goes,

I discovered proxy sites that my current framebuster couldn't stop. I tried all the framebuster scripts from WW but I couldn't find any that worked. So I came up with this,

<body onload="if(location.href.substring(7,location.href.lastIndexOf('.'))!= 'example') top.location.replace('http://example.com/');">

The code simple checks the domain name and if it isn't http;//example then it changes it to that.

My updated pages are now indexed in yahoo, google and msn. The script not only stops the proxy framing, excluding those that disable javascript, but will also break the frame on cached pages. Any time any page on my site is framed, it sends the person to my home page.

What are the reprocutions of this, if any?

Is this considered some type of redirect that will get me banned from all the search engines?

le_gber

9:54 am on Mar 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



twist,

no don't think there is any problem with this - until se can read and react to Javascript.

You may want to unframe you site though - it is usually better for the search engine listings and accessiblity.

hope this helps

btw the unspecific search engine forum is [webmasterworld.com...]

twist

6:16 pm on Mar 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, I thought that forum was for promoting your own search engine. Don't know why I thought that. Anyway, thanks for the help.