Excessive use of API keys may cause you to drop out of the free plan and spend more than you intended. It is recommended to restrict keys to avoid unauthorized or accidental use.
To do this, you need to shandong phone number click the "Restrict Keys" link at the bottom of the "Created API Key" popup on the previous screen.
On the next page, you can set a number of different limits. The first one is "App Limits".
In this section, you need to click on the “HTTP Referrers (Website)” option. This way the key will be used only for the website.
Limit HTTP referrers (websites)
Next, you need to make sure it's only used on your website. To do this, you need to scroll down to the "Site Limitations" section and click on the "Add Item" button.
At this point, you'll need to enter your website's domain name in the "New Project" field using a scheme. *esempio.com/*
Enter your website domain name in the "New Project" field using the pattern *example.com/*
If you plan to use Google Maps on multiple websites, you can click the "Add an item" button and add as many domains as you want.
Now that you've restricted your API key to only work on your own website, you can restrict it to only work on the Google API you added earlier.
You need to scroll down to the "API Limits" section of the page and select the "Restrict Keys" option. A drop-down menu will open where you need to select the "Geocaching API", "Map JavaScript API" and "Location API" boxes.
Once this is done, you need to click on the OK link to store the settings.
Restrict API keys to specific APIs
-
- Posts: 131
- Joined: Mon Dec 23, 2024 2:26 pm