Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8615837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:28:42+00:00 2026-06-12T05:28:42+00:00

I am trying to add a Google+ button to all my domains but when

  • 0

I am trying to add a Google+ button to all my domains but when the button is clicked, I get an error back from google (Red exclamation mark in warning triangle)

I have tried a number of things and have worked out the following.

Google+ will try to access my site when the button is clicked to verify the site. My site fails at this point.

The reason for this is that we have multiple domains and a cross-site session script in place that requires us to forward a user to our sessions server on their first visit to a new domain, then forward the user back to the domain they were trying to access.

To forward the user I am using the PHP function header(“Location: ” . SESSION_SERVER);

When Google gets the header asking for the redirect it fails and therefore makes my site unable to be +1’d.

The stuff I know about the Google+ verification bot is that it doesn’t have cookies enabled and that it uses a standard google chrome user agent (correct me if I’m wrong on this one)

I think the solution is to be able to detect the google+ bot and not redirect it or have a way of redirecting it without it interfering with the site passing the bot’s verification process.

(Oh, and the site I am testing on is http://www.taxicode.com)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:28:43+00:00Added an answer on June 12, 2026 at 5:28 am

    We solved this problem a while ago now so I thought it would be appropriate to post the solution.

    We discovered the Google+ bot set the server property HTTP_X_GOOG_SOURCE. That allowed us to detect it and stop the redirection.

    In PHP:

    if (isset($_SERVER[‘HTTP_X_GOOG_SOURCE’])) {

    // Don't redirect
    

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to extend jWysiwyg with an function to add a map from Google
I am trying to add plus one button on a XUL window, but I
I am trying to add a Google Plus button to my site, and keep
We are trying to add dynamic kml to google earth.But we are failing in
I'm trying to add a Google +1 button to my site. I'm using rails,
I am trying to add multiple google markers on a map and I am
I'm trying to add a google calendar gadget along with an event. However, whenever
I am trying to simply add a Google Search bar onto my own map
I am trying to use the Google Map API- I've successfully managed to add
Im new to asp.net mvc. I'm trying add new model class but it got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.