1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google reads ajax? Idea to load redirect with ajax.

Discussion in 'Cloaking and Content Generators' started by Juicify, Jan 7, 2009.

  1. Juicify

    Juicify Newbie

    Joined:
    Jan 5, 2008
    Messages:
    28
    Likes Received:
    2
    Anyone knows if google bot loads ajax (xmlhttp)? I was thinking we could load in redirection code in the form of meta refresh or javascript with ajax and have the browser execute the redirect. This would be instead of cloaking the redirect by user agent or IP.
    What do you think?
     
  2. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    I was thinking about that recently too--not sure if loading a meta tag via ajax would allow it to execute. (Since they are generally considered head elements and handled on page load.) There is only one way to find out though :) Be sure to let us know how it goes.

    Another good idea would be to have it loaded via ajax triggered by some random command that the user will pretty much HAVE to execute (moving mouse over body or something like that) rather than using an onload() event--the more obscure it is the less likely Google is to recognize it. (Assuming it works, that is.)
     
  3. zonez

    zonez Newbie

    Joined:
    Dec 21, 2006
    Messages:
    5
    Likes Received:
    0
    This works great, I use it.
    Just execute the AJAX call automaticly after the DOM has loaded.

    Anyone needs a Jquery example?
     
  4. justone

    justone Elite Member

    Joined:
    Oct 12, 2008
    Messages:
    1,516
    Likes Received:
    1,037
    Occupation:
    -
    Location:
    Europe
    A few months ago I read that google was extended to understand ajax.
    So in case G does not already do that, be prepared for a soon change.

    Regarding that I'd say it's risking a ban.
     
  5. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    Best thing to do is to make some complicated Javascript that google would not be able to handle and use its output as verification argument for the Ajax to return a redirect. (Otherwise it could just return something generic and innocent.) For example, doing some math involving elements on the page, current window size, browser type, and input from some delayed timer, etc etc--which google would probably not be able to handle. (Otherwise it would waste a lot of resources running ALL javascript.)