Search code examples
google-apigoogle-authenticationgoogle-apis-explorergoogle-developers-console

restrict Google API Key by HTTP referrer (client side) OR IP address (server side)


Is it possible to restrict Google API Key by HTTP referrer (client side) OR IP address (server side)?

The image below shows where I set this in the API console. The problem is that I have to choose the restriction by type (i.e. I can not restrict by HTTP Referrer and/or IP address).

Screenshot from Google API


Solution

  • These are the only options that you have. You can choose one or the other not both.

    Suggestion There is a feedback option in the upper right hand corner of the google developer console. What you suggest is a good idea i suggest you submit it as a feature request that it be possible to select more then one type.