# Places autocomplete blocked by HTTP referrer restriction

**URL:** <https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991>\
**Category:** Geolocation\
**Created:** [September 17, 2026, 9:27am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991 "2026-09-17T09:27:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nabil](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@Nabil](https://community.hivepress.io/u/Nabil)\
**Post date:** [September 17, 2026, 9:27am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/1 "2026-09-17T09:27:38Z")

</div>

The location autocomplete fails with:  
POST [https://places.googleapis.com/$rpc/google.maps.places.v1.Places/AutocompletePlaces](https://places.googleapis.com/$rpc/google.maps.places.v1.Places/AutocompletePlaces) 403  
RpcError: Requests from referer [https://courslancer.com/](https://courslancer.com/) are blocked.

API key restrictions: HTTP referrers, with [courslancer.com/\*](http://courslancer.com/*) and  
_.courslancer.com/_ explicitly listed. Also tried https:// variants.

Setting Application restrictions to “None” makes it work immediately.  
Enabled APIs: Maps JavaScript, Geocoding, Places (Legacy), Places (New).  
Disabling Places API (New) did not change the behaviour.

WordPress 7.1 · HivePress 1.7.31 · Geolocation 1.3.10 · ListingHive

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [September 17, 2026, 9:27am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/2 "2026-09-17T09:27:39Z")

</div>

Thanks for your message — our team will reply shortly.

In the meantime, you can also get instant help from our [AI Assistant](https://www.chatbase.co/PdfFucPZ0vUmh3dfM-oe1/help), familiar with all the docs and solutions we’ve shared over the years.

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [September 17, 2026, 11:09am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/4 "2026-09-17T11:09:00Z")

</div>

Hi,

Could you please let us know if you’re restricting the API key or the Secret key?

The key that should be restricted is the API key. To apply the restriction to the entire site, please use the `http://dev.local/*` format so that the key is restricted to all pages on your website.

Alternatively, you can provide temporary access to your site [please send an email with the link to this topic to [support@hivepress.io](mailto:support@hivepress.io)], and we can temporarily replace your key with a working one to check whether the issue is related to the key configuration or if there is a bug in the extension. You can create a temporary access link using this [plugin](https://wordpress.org/plugins/temporary-login-without-password/).

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [September 17, 2026, 3:52pm UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/6 "2026-09-17T15:52:42Z")

</div>

Additionally, please make sure that you haven’t enabled Version checkbox in the Integrations tab.

---

<div class="post-metadata">

**Author:** ![Nabil](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@Nabil](https://community.hivepress.io/u/Nabil)\
**Post date:** [September 18, 2026, 5:44am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/7 "2026-09-18T05:44:04Z")

</div>

Thank you for the quick reply.

1. I’m restricting the API Key, not the Secret Key.  
The Secret Key field has always been empty.

2. The “Version” checkbox in Integrations is NOT enabled.

3. I already use the format you suggested:  
[courslancer.com/\*](http://courslancer.com/*) and _.courslancer.com/_  
I also tried https:// variants and the exact subdomain.  
All were rejected with the same error

---

<div class="post-metadata">

**Author:** ![Nabil](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@Nabil](https://community.hivepress.io/u/Nabil)\
**Post date:** [September 18, 2026, 5:51am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/8 "2026-09-18T05:51:42Z")

</div>

4.Despite the Version checkbox being off, the requests still go to  
which is the New Places API endpoint.

5.Setting Application restrictions to “None” makes it work instantly.

I accept your offer of temporary access. I will send the link to  
[support@hivepress.io](mailto:support@hivepress.io). Please note the access will be for my STAGING  
site ([test.courslancer.com](http://test.courslancer.com)), not the live one.

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [September 21, 2026, 10:10am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/9 "2026-09-21T10:10:59Z")

</div>

The issue was caused by a corrupted entry in the API key’s website restrictions list. Deleting `courslancer.com/*` and then adding the exact same value again fixed the issue immediately.

Additionally, Google may sometimes need more time than expected to apply or update API key restrictions, so the changes may not take effect immediately.

---

<div class="post-metadata">

**Author:** ![Nabil](https://community.hivepress.io/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@Nabil](https://community.hivepress.io/u/Nabil)\
**Post date:** [September 21, 2026, 10:55am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/10 "2026-09-21T10:55:21Z")

</div>

Thank you, Kseniia — confirmed and working on the live site.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [October 21, 2026, 10:55am UTC](https://community.hivepress.io/t/places-autocomplete-blocked-by-http-referrer-restriction/17991/11 "2026-10-21T10:55:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
