Support » Plugin: Google Pagespeed Insights » Error: The request did not specify any referer

  • Resolved Tanner

    (@tannerchung)


    domain: usageLimits

    reason: ipRefererBlocked

    message: The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.

    Does that mean that the plugin is not sending a referrer and we have to turn off Application Restrictions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    Hey Tanner, sorry for the late reply.

    I’ve seen that error many times and it means that when creating your API key from the google developer console, you added a restriction so the key can only be used on certain domains or IP addresses.

    I can’t say why but the way these are configured seems very straightforward, but I can never get it to work properly.

    To verify that is your problem you can remove key restrictions and try again. Personally my developer account is not hooked up to billing, and this key is used server-side and not client side, so I do not worry about it.

    Tanner

    (@tannerchung)

    Hey Matt,

    Thanks for the reply. I can confirm that was the issue. However, I had added a restriction for only the actual domain I was using the plugin for yet I was still receiving this error which is odd to me.

    Plugin Author Matt Keys

    (@mattkeys)

    I know what you mean. I’ve tried every combination of domain or IP restriction I can think of, and none of them work. I’ve reached out to Google about the bug years ago and never heard back.

    • This reply was modified 1 year, 2 months ago by Matt Keys.
    Plugin Author Matt Keys

    (@mattkeys)

    I found in some testing today on the new beta of this plugin, that google only accepts the domain ‘https://*.googleapis.com’ in the HTTP restrictions.

    Looking through their API docs it seems there is no way for me to ‘help’ point their API to the actual referrer. I think this is a bug, but there is no way for me to do anything about it from my end. Still interesting to finally know what it is expecting.

    Appreciate the additional findings. That helps me as well. I’ve left restrictions like that completely out of any other API keys that I have in the console since I haven’t had any luck with them.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error: The request did not specify any referer’ is closed to new replies.