> For the complete documentation index, see [llms.txt](https://docs.gptboost.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gptboost.io/security/methods/allow-only-ips.md).

# Allow Only IPs

**Allow Only IPs** is your fortress against unknown threats. available for the GPTBoost PRO plan, utilizing this policy adds an additional level of security to your LLM project. Some of the reasons why it's important:

* Protection Against Unauthorized Access: Restricts access to the LLM to only authorized production servers. This prevents external parties from attempting unauthorized access, enhancing overall security.
* Shielding Against Threats: Enable "Allow Only Given IPs" to protect from Distributed Denial of Service (DDoS) attacks. Simply permits access only to trusted servers, mitigating the risk of attacks from malicious IP addresses.

### How to set Allow Only IPs policy?

* Sign in to your GPTBoost dashboard and navigate to the `Security` section. \*
* Hit the `+ Add Policy` button
* Pick a meaningful and self-explanatory N**ame** for the policy. Choose the **Policy Type** - Allow Only Policy or Block Only Policy. Provide the IPs that you want to whitelist or block, depending on the policy type you selected.

<figure><img src="/files/mzjHFqhn3scKHqMQgiyq" alt=""><figcaption><p>Set Allow Onpy IPs Policy</p></figcaption></figure>

\* Keep in mind that the IP Security feature is available for the **GPTBoost Upgraded Plans**. If you're still on the free tier, simply log in to your GPTBoost account and navigate to `UPGRADE` button at the end of the menu.

### Add your additional level of security to the OpenAI Key

* Go to **OpenAI Keys**.
* Initiate `Edit` for the key you'll add the newly created Allow Only IPs rules.
* Instead of the Default - Open Policy, select the preferred one from your custom set IP policies.
* Click `Save`

<figure><img src="/files/ubBOVl948bZAlB9A0TCf" alt=""><figcaption><p>Add IP Policy to Key</p></figcaption></figure>

Voila! Enhanced security level achieved in a minute.&#x20;


---

# 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://docs.gptboost.io/security/methods/allow-only-ips.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.
