Friday, February 12, 2010

Programmer - How does Google Maps secure their API Key? How to make something similar?

Programmer Question

Currently Google requires you to create an API Key that is specific to the domain of where the map will be served from. How does Google enforce this? I want to do the same thing.



I expose an API for my service but want to allow clients to embed calls to the API via javascript and not just from the server. I could secure it with just a random token but of course this could be easily spoofed by anyone looking at the code on the client machine.



I always understood this concept to not be possible but somehow Google does a good job at enforcing it.

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails