How to Restrict your Google API Key

How to Restrict your Google API Key

Why is Google Asking Me to Restrict My Google API Key?

InCom uses Google Maps for many map functions on our websites, and you own an API key that allows your site to use the power of Google Maps on your website. Google recommends that you restrict your API key so it can only be used on your website. This adds an extra layer of security to prevent unauthorized use of your key. 

How Do I Restrict My Google API Key?

1. Log in to your Google Cloud Account

  1. Go to https://console.cloud.google.com/, then click the navigation menu in the top left corner.
  2. Select APIs & Services > Credentials.

2. Edit The API Key

  1. Click the Actions button (the three dots next to “Show Key”) and select Edit API Key.

3. Apply Restrictions

  1. Under Application Restrictions, select Websites.
  2. Then, under Website Restrictions, enter your website domain.
    1. Please enter in your domain as www.mywebsite.com 
    2. Do not include anything else such as https://
  3. Scroll down and click Save.


4. Visit your website to ensure the maps are working as expected




We  also have a great video here that will demonstrate how to restrict your key:


    • Related Articles

    • Creating a Google Maps API Key

      What Does A Google Maps API Key Do? The Google Maps API (Application Program Interface) powers your InCom website's maps so your website has the rich detail and information available on Google Maps. This creates interactive maps that add incredible ...
    • Logging in to the Mobile App

      Logging into InCom Connect is quick and easy! All you need to do is download the App from the App Store for iOS, or Google Play for Android. How Do I Log In To the Mobile App? Download InCom Connect Open it on your phone Enter the same username and ...
    • Updating Personal Information

      Keeping your personal information up to date is important for maintaining a professional online presence. Here’s how you can update your name, title, mobile phone number and bio. How Do I Update My Bio and Other Personal Information? 1. Go to the ...
    • Purchasing a Domain

      Why do I need to buy a domain? A domain is like your website’s address on the internet—it’s the unique name people will type into their browsers to find your site. Just as a physical business needs a location, your website needs a domain to be ...