Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google UrlShortener "ipRefererBlocked"

I have a site hosted on Azure where the calls to the Google UrlShortner API are being blocked. I receive the error:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "ipRefererBlocked",
    "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
    "extendedHelp": "https://console.developers.google.com"
   }
  ],
  "code": 403,
  "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
 }
}

The API works fine running locally and I have added the ip address to the API project credentials in the developer console. This appears to be an issue with Azure but I don't see where anyone has an answer.

Any suggestions would be great!

like image 518
Kevin Schultz Avatar asked Feb 03 '15 21:02

Kevin Schultz


1 Answers

I was never able to get this resolved even using a static ip. Work around was tinyUrl. Their api worked flawlessly.

like image 89
Kevin Schultz Avatar answered Sep 23 '22 01:09

Kevin Schultz