PDA

View Full Version : Google is now executing JavaScript found on pages


mitzaman
05-17-2007, 04:05 PM
First i want to say hello to everybody, this is my first post here.

From some time I was suspecting that google will star runnig scripts on pages, now I know it does.
I did some doorway pages for a client, about two years ago. The doorway pages were optimized for different keywords and had a javascript redirect to the main page. Today I was shocked to see that google has recently indexed each doorway page having the content of the main page.
So, the url displayed is something like: "www.domain.com/keywordX.html" but with the title and content of the main page. This goes for all the doorway pages using the javascript redirect and is very recent, until now every page was indexed with it's title and content.
Does anyone else know about this?


PS: English is not my native language, so ... :)

beu
05-17-2007, 07:11 PM
Are you using a 301 or 302 redirect?

mitzaman
05-19-2007, 10:29 AM
No, the only redirect is done with JS

beu
05-20-2007, 05:25 AM
very interesting, great catch!

evilgreenmonkey
05-20-2007, 05:40 AM
Google has prodded around in JavaScript for a while now, usually to find new links to index or more recently to see if you're doing something naughty. It seems to bypass Google if you URL encode all your JavaScript and then stick it in an unescape() function.
e.g.
eval(unescape("document.write%28%22Dodgy+Code%22%29%3B"));
Most people seem to encode alpha-numerics in their string as well.

A little too old school for me though. I would give you an example of a doorway page using this technique and ranking, although it would be hard to do so without "outing" them.

:cool:

Rob

beu
05-20-2007, 11:26 PM
Great point Rob!

mitzaman
05-25-2007, 02:41 PM
the javascript routine did the redirect with an eval function, something like eval("docum"+"ent"+".loc"+"ation='rfrfrfr'"); so google does not just read the js content to extract urls, it actually runs the script