We hosts a large number of websites for clients on our bespoke CMS. They all use the same Google API Key for Google's Maps and Geocoding API.
We want to start limiting the HTTP Referrer
of our Google API Key by listing all of our client domain names.
The only way we have found to do this is by editing the key on https://console.developers.google.com/apis/credentials/ and adding the domains one at a time under 'Application restrictions' options.
Preview of 'Application restrictions' options on Google API website:
This is not very ideal for us, as we have several hundred client domains, and we would need a developer to add these manually each time we get a new domain.
So my question; is there a way for us to add the HTTP Referrer
programatically? Or is there an alternative way to limit the usage of the keys by just our client domains?