Servers created on bot-hosting.net typically share an outbound IP address with a small number of other servers (usually 2–5).
In some cases, another user on the same IP may exceed usage limits. When this happens, the IP can be temporarily blocked from accessing certain APIs, which may cause errors in your server console.
These errors often appear as an HTML page with a Cloudflare message indicating that access to discord.com has been temporarily restricted.
What you can do:
Administrators can update your server’s outbound IP address to restore normal access as soon as possible.
If you are using the discord.js package, you need to listen to REST events to detect when your application is being rate limited.
By default, discord.js handles rate limits internally and retries requests automatically, without notifying you. This means you may not immediately realize when your bot is being limited.
To monitor this, you can listen to REST events and check for specific response codes, such as:
Below is an example of how to listen for REST events and handle these cases:
client.rest.on(RESTEvents.Response, (Req, Resp) => {
if (!(Resp.status === 403 || Resp.status === 429)) return;
console.log('Rate limited!')
});