Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting originating host name when a site makes an Google Maps API call to my server data
    primarykey
    data
    text
    <p>I'm building out an API and have a question about how to track/know which domains use the call, after the KML gets picked up by Google's servers for rendering.</p> <p>So for example, my domain that is serving up the API PHP file is called dev.yourmapper.com. Someone on the domain www.metromapper.org builds a page that creates a Google map, and calls my file using Ajax to overlay my data on their map. Google grabs that KML file, then serves it back to the user. </p> <p>Here is that example in action: <a href="http://www.metromapper.org/example/apitest.htm" rel="nofollow noreferrer">http://www.metromapper.org/example/apitest.htm</a></p> <p>(Click the center map marker to see a popup of all the PHP Server variables available to the yourmapper.com script.)</p> <p>Since Google is grabbing it, I can't use the PHP variables REMOTE_HOST or REMOTE_ADDR to get the 'metromapper.org' site info. They only tell me Google's IPs. </p> <p>So is there some other way to get this data? Does Google happen to return it in the header somewhere? Any ideas on how to track or pass the originating remote host name around so I can get it when the call is made? Thanks, I realize this might not be solvable.</p> <p>FYI, I posted this question here too, but it was before I knew it was Google's IP in the Remote Host: <a href="https://stackoverflow.com/questions/6946744/getting-the-domain-that-calls-an-php-file-on-your-server-through-ajax">Getting the domain that calls an PHP file on your server through AJAX</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload