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.
Related posts:
















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.
Also maybe he wants to hide the code if the api can be disabled for other sites.
Thanks.
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?