---
title: "IP 位址篩選"
url: "/docs/proxy/ip_address"
canonical_url: "https://docs.litellm.ai/docs/proxy/ip_address"
type: "docs"
last_updated: "2026-10-08"
related:
  - "/docs/proxy/custom_auth"
  - "/docs/proxy/multiple_admins"
---
# IP 位址篩選

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt


> **LiteLLM Enterprise feature.** Requires an Enterprise license (`LITELLM_LICENSE`). Talk to sales: https://www.litellm.ai/enterprise#talk-to-sales

限制哪些 IP 可以呼叫 proxy 端點。

```yaml
general_settings:
  allowed_ips: ["192.168.1.1"]
```

**預期回應**（如果 IP 未列出）

```bash
{
    "error": {
        "message": "Access forbidden: IP address not allowed.",
        "type": "auth_error",
        "param": "None",
        "code": 403
    }
}
```

## Related pages

- [自訂驗證](https://docs.litellm.ai/docs/proxy/custom_auth.md)
- [稽核記錄](https://docs.litellm.ai/docs/proxy/multiple_admins.md)
