How do I hide my google translation API?

I am using jquery translate which uses google translate to provide the service. I actually pay for the translation. However, some websites just grabbed my API key (including code) and used it. In the end, I have to pay for them. So I'm wondering if there is a way to hide the key.


<script language="javascript"> 

$.translate.load("API key");


$("#submit").click(function() {

    $.translate('text', 'en','es', {
            complete: function(translation){





source to share

2 answers

On Google API Guide :

You can specify which domains can use your API key by clicking the Edit Allowed Links link in the Easy API Access section of the API Access panel in the API Console.

Go to the API Console and change accordingly.



You can restrict API access based on IP or referrer.



All Articles