# Block Only IPs

"Block Only Given IPs" is your shield against known threats. Here's why it's crucial:

* **Preventing requests from unauthorized users**: Teams can use the Block Only Given IPs policy to prevent requests from unauthorized users, such as competitors or malicious actors. This can help to protect the LLM from unauthorized access and use.
* **Blocking requests from known malicious IP addresses**: Teams can use the Block Only Given IPs policy to block requests from known malicious IP addresses, such as IP addresses that have been associated with spam or phishing attacks. This can help to protect against a variety of security threats.

### How to set Block 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="https://733697247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmvbgcUmdD6m1azzEtXMG%2Fuploads%2FJvY6s1zMmG6cT4zuTXQC%2Fset_block_only_ips.png?alt=media&#x26;token=066a851c-ba4f-4018-be7f-67d95f137c6f" alt=""><figcaption><p>Set Block Only 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="https://733697247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmvbgcUmdD6m1azzEtXMG%2Fuploads%2FnZiVi4yFDV5kZg3nlZnV%2Fadd_security_policy_to_key.png?alt=media&#x26;token=2063d990-4809-4b1d-9332-2d1103bb3917" alt=""><figcaption></figcaption></figure>
