Domain restrictions add an extra layer of security to your API keys by limiting which domains can use them. This prevents unauthorized use if your key is ever exposed.
Domain restrictions allow you to specify which website domains are authorized to use your API key.
How it works:
Origin or Referer header of each request403 ForbiddenWithout domain restrictions:
With domain restrictions:
Your key: gm_abc123...
Allowed domain: [myapp.com](http://myapp.com)
Request from [myapp.com](http://myapp.com) → ✅ Allowed
Request from [attacker.com](http://attacker.com) → ❌ Blocked (403)
Request from [localhost](http://localhost) → ❌ Blocked (403)