Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Restricting your Google Maps API key will help to keep your account secure. Similar to ensuring your house keys or car keys are kept safe, securing your API key is important so it can only be used by those you intend to it and not other people who may misuse or abuse it. This guide outlines the steps you will need to take in order to restrict your API key. By default there are no restrictions setup on your account, but these restrictions can be changed at anytime once you’ve setup your account.

In addition, you might find that your website maps are not working even if there are up to date billing details added to your account. This can be caused by a lack of restrictions on your API key so it’s important you take these additional steps on your account.

  1. Log into your Google Cloud Console account https://cloud.google.com/ , this may be the same account used for your Google Analytics account

  1. Head to the Navigation panel and go to ‘APIs and Services’ then click on ‘Credentials’

  1. On the credentials page under ‘Actions’ you will see 3 dots. Click on the dots and click on ‘Edit API Key’

  1. Under the ‘Set an application restriction’ check the ‘Websites’ option from the list

  1. A new ‘Website restriction’ section will pop up underneath

  1. Using the ‘Add’ button you will need to add all the domain names that will be using the key

    1. www.domainname.com

    2. commercial.domainname.com

    3. https://*.domainname.com

  1. Once you have added all the links, save the changes. Refresh your website to check if the map has started to work. If you are still experiencing issues, please contact the helpdesk for further assistance.

Keywords: Google Maps, API Key, Map Functionality, Restrict API Key, Google Maps Restriction, Google maps not working, Google maps error, map error, map not working

  • No labels