If you're going to call it from the client side, you will use the referer
restriction method. Restrict it to the servers and domains that will be
using it.

If you're calling the API server-side (e.g., from PHP), and it's
manageable, then leave it on IP-based restriction.

Jg
On Jul 13, 2012 12:00 PM, "Patrick Ziegler" <[email protected]> wrote:

> I added my IP to  Key for server apps (with IP locking) and it is now
> working...  Prior to this I had the Web server IP in this...  I can work
> with this as we only have a few IP's that will need to access this.
>  However, I am curious as how one would set it up so any visitor to our
> site could use the ap...
>
> Thanks for all of your input!
>
> Pat
>
>
>
> On Friday, July 13, 2012 11:54:40 AM UTC-5, jgeerdes [AJAX APIs "Guru"]
> wrote:
>>
>> Then it is definitely a header issue. With PHP, you willl need to use
>> curl. There used to be some code samples for this, but I don't know that
>> they are still available. Actually, you might want to check out the client
>> library Google has supplied for PHP. Alternatively, you could remove those
>> referer restrictions, but I don't think I would recommend that, especially
>> if you're going to enable billing. (Wouldn't want someone stealing your
>> queries or money!)
>>
>> Jg
>> On Jul 13, 2012 11:44 AM, "Patrick Ziegler" <> wrote:
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> To view this message on the web, visit
> https://groups.google.com/d/msg/google-ajax-search-api/-/H9fHU06bk84J
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to