Getting 403 response from HubSpot servers (not API endpoints)

Hey guys,

we have a somewhat special setup:

To allow the injection of sensitive user information into HubSpot hosted pages we have implement kind of a proxy that is delivering and enhancing HubSpot hosted content (pages and blogs) to our website visitors. Therefor, it

  1. intercepts client requests,
  2. requests the needed data from HubSpot (plain HTML),
  3. strips out unneeded JS and references
  4. injects data like subscription information and
  5. sends it back to the client

Check the component diagram above for a visual representation. The whole request sequence does not involve requesting data from the HubSpot API. Instead we get the rendered HTML from HubSpot servers (via website.vaadin.com).

The sequence diagram shows a simplified website visitor request processing that after validating the initial request, prepares a request to the HubSpot servers and returns the enhanced HTML back to the initial requestor.

In sum, the most important part is that the User/Browser does not communicate to the HubSpot servers directly. It only communicates to our website nodes and only the website nodes communicate to the HubSpot servers. That of course means that all the traffic to the HubSpot servers are only coming from 4 different nodes (aka 4 different IP addresses).

This whole concept worked for years already but suddenly something has changed. Maybe the traffic increased or rate limits (Cloudflare) have been changed. But now our website nodes receive 403s quite frequently from the HubSpot servers when they request the HTML.

1) I would like to understand if the 403s we’re getting are because of rate limits?

2) What are the rate limits?

3) Can we adjust the rate limits for an IP range or static IPs?