> For the complete documentation index, see [llms.txt](https://bothosting-net.gitbook.io/bot-hosting.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bothosting-net.gitbook.io/bot-hosting.net/troubleshooting/rate-limits.md).

# Server Rate Limits

{% hint style="info" %}
Legacy Panel Guide. Some parts still apply.
{% endhint %}

Servers created on Bot-hosting 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:**

* This issue is usually temporary and resolves on its own;
* Set up a proxy to redirect requests;
* Try to use the New panel instead: [https://bot-hosting.net/](https://beta.bot-hosting.net/)

***

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 because no message will be sent to your server console unless you are logging them.

To monitor this, you can listen to REST events and check for specific response codes, such as:

* **403** – Forbidden (access denied)
* **429** – Rate limited

Below is an example of how to listen for REST events and handle these cases:

```javascript
client.rest.on(RESTEvents.Response, (Req, Resp) => {
    if (!(Resp.status === 403 || Resp.status === 429)) return;
    console.log('Rate limited!')
});
```

* "client" is a [Client](https://discord.js.org/docs/packages/discord.js/main/Client:Class) instance
* "[RESTEvents](https://discord.js.org/docs/packages/discord.js/main/RestEvents:Interface)" can be imported from discord.js


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bothosting-net.gitbook.io/bot-hosting.net/troubleshooting/rate-limits.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
