homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Google's own link cloaking
How do they do ti?

Msg#: 4229103 posted 5:56 am on Nov 11, 2010 (gmt 0)

Using Safari (Mac):
  • Go to google.com, search for something.
  • Hover over any search result, don't click.
  • Look at the browser status bar on bottom. You see the destination link, right?
  • Now RIGHT-click (or Ctrl-click with one-button mouse) on the result and select "Copy Link"
  • Paste the link anywhere.
What do you get? I get a redirect link like this:

Strangely, if you go back to the result page, which should still be open since you didn't left-click, and hover your mouse over the same link again, now you see the real cloaking link in the status bar.

BTW this does not work in Firefox. Copying the link there will get you the true destination link, not a redirect. Which means they apparently sniff user agent and serve different content by browser. Haven't tried other browsers. Would be curious about IE, but don't have Windows.

My question: How does this work?

It is definitely not your old
onmouseover="window.status='http://www.example.com';return true;"
onmouseout="window.status=' ';return true;"

which doesn't really work in any browser I know.



Msg#: 4229103 posted 6:23 am on Nov 11, 2010 (gmt 0)

BTW, I found Yahoo is doing it too, on both Safari and FF:

... and so is Ask.com (RIP [webmasterworld.com]):

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved