title: Google Maps API Key - URL Restrictions
body: <p>A few days ago i generated an API Key to embed Google Maps in my projects. It works pretty well, because i made no restrictions - so basically everyone could have used the key.</p>
  
  <p>Today i tried to make some restrictions, based on my domain - but i have a couple of problems:</p>
  
  <p><strong>Absolute URLs with URI works pretty fine - e.g</strong>. </p>
  
  <pre><code>http://example.com/myFirstTest.html
  </code></pre>
  
  <p>or</p>
  
  <pre><code>http://example.com/mySecondTest.html
  </code></pre>
  
  <p><em>Google allows schema restriction like:</em></p>
  
  <pre><code>*example.com/*
  </code></pre>
  
  <p>which i have tried without any success, because the Maps API responds with "<a href="https://developers.google.com/maps/documentation/javascript/error-messages?hl=en" rel="nofollow noreferrer">RefererNotAllowedMapError</a>" which references to my only restriction i made? </p>
  
  <p><strong>I also tried another absolute URL without any URI / Parameter:</strong></p>
  
  <pre><code>example.com/*
  </code></pre>
  
  <p>and </p>
  
  <pre><code>example.com/
  </code></pre>
  
  <p>again - without any success. </p>
  
  <p><strong>A wildcard pattern isn't working either:</strong></p>
  
  <pre><code>example.com/*.html
  </code></pre>
  
  <p>or</p>
  
  <pre><code>*example.com/*.html
  </code></pre>
  
  <p>Please let me know, if you need more informations!</p>