in reply to Re^5: Google AdSense Code cause double entries of search terms in the log table
in thread Google AdSense Code causes double entries of search terms in the log table

Here are the issues:

The second hit came from Google which is a machine. It obviously causes my script to run one more time immediately after a visitor enters a search term in the search form. This may delay the display of Search Result Page, affecting my site performance.

I'm looking for way to stop Google's Machine activates my script.

Google's AdSense Code is a JavaScript.

Any suggestion?
  • Comment on Re^6: Google AdSense Code cause double entries of search terms in the log table

Replies are listed 'Best First'.
Re^7: Google AdSense Code cause double entries of search terms in the log table
by Anonymous Monk on Dec 22, 2010 at 05:20 UTC
    "google's machine" identifies itself, and has ways of being signaled to not activate your script -- its easy to deny it access
      Yeah, I've thought of designing the script to block Google Machine's IP which is 66.249.71.196 presently.

      But IP, 66.249.71.196 is discovered after the fact. I can design the script to deal with this particular IP.

      What if Google changes its Machine IP in future, or dynamically changes its IP. I'm back to square one.

      Any suggestion for a long term solution?
        Yeah, I've thought of designing the script to block Google Machine's IP ...

        Googles crawlers identify themselves, they don't hide their name, and google documents all this. you don't need to know their IP or guess anything