It doesn't happen at the TCP/IP level, but rather at the HTTP level: http://en.wikipedia.org/wiki/HTTP_referrer
A user may get the Forbidden, if their browser (or something inbetween) doesnt send the Referrer to the server. On 21/08/2009, Chuck Bevitt <[email protected]> wrote: > > To use google static maps requires obtaining an API key that is > registered for the domain. This statement sounds like a complete > explanation, but just how does that work? How does google 'see' the > domain when the URL is embedded in a web page that is executing in a > user's browser out in the internet? > > Looking at it step by step: > > - Suppose I have a web server at www.MyServer.com. > - A user in the internet browses to http://www.MyServer.com/MyPage.aspx. > - My web server sends the page to the user's browser. > - The user's browser begins rendering the page and discovers an image > tab with a URL like: http://maps.google.com/staticmap?... > - The user's browser opens a new TCP/IP connection to maps.google.com > and requests the URL. > > Now, how does google see that the request originating from the user's > browser is part of a page from www.MyServer.com? Do browsers include > the page URL as part of the HTTP request to get the contents for the > image? > > Hopefully understanding EXACTLY how it works will avoid embarrassing > FORBIDDEN messages. > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
