12 January 2012 ~ 3 Comments

Request: Google Translate API v2 using PHP

I was asked the other day in a comment on my shop site the following quote.

Do you also have php version of Google Translate API v2 ?
I’m asking because i need to hide somehow the api key from public or do you know another way of doing it ?

Well even if that person didn’t hide the API key it wouldn’t matter because you need to set what sites are allowed to use the API key. No one can use it but the owner of that API key. It’s fixed for only the domains that are on the white list in the owners Google account.

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Related posts:

3 Responses to “Request: Google Translate API v2 using PHP”

  1. Simon 12 January 2012 at 11:40 pm Permalink

    It would be nice, but you can limit the requests to your domain or even your server. So don’t really see it as a issue.

  2. ionel 3 February 2012 at 1:11 pm Permalink

    Also maybe he wants to hide the code if the api can be disabled for other sites.
    Thanks.

    • Sebastien 4 February 2012 at 4:00 pm Permalink

      That could be one reason but if the user is able to control what sites the API key works for… does it really matter if it’s hidden or not?


One of 347 websites proudly supporting Earth Hour.    Use WordPress? Get the plugin.
Performance Optimization WordPress Plugins by W3 EDGE