Why is my IP blocked by Cloudflare?

English Version

Q: Why is my IP address blocked by Cloudflare?

A: To ensure system stability and mitigate unauthorized access, the AI Marketplace employs an automated rate-limiting protocol.

1. Applicable Scope

This policy pertains exclusively to the following endpoints:

  • https://mkp-api.fptcloud.com/chat/completions

  • https://mkp-api.fptcloud.com/v1/responses

2. Triggering Condition (Vietnam Region)

The system automatically monitors for irregular traffic patterns. A temporary restriction is triggered if a single IP address accumulates \ge 600 requests resulting in a 401 Unauthorized error within a 10-minute window (averaging 10 requests/second).

3. Impact on Service

Upon meeting the aforementioned criteria, the IP address will undergo a temporary suspension of access to the specified APIs. This restriction remains in effect for one hour, after which normal service is automatically reinstated without requiring manual intervention.

Recommendation: A 401 Unauthorized error typically signifies an invalid API Key. This frequently occurs when team members attempt to utilize a key that has been previously revoked by a project leader. Please verify the validity of your credentials to prevent service interruption.


Vietnamese Version

Q: Tại sao tôi bị Cloudflare chặn IP?

A: Hệ thống AI Marketplace áp dụng giao thức giới hạn tự động nhằm bảo vệ tài nguyên và đảm bảo chất lượng dịch vụ. Dưới đây là thông tin chi tiết về cơ chế này:

1. Phạm vi áp dụng

Quy định này áp dụng cụ thể cho hai endpoints sau:

  • https://mkp-api.fptcloud.com/chat/completions

  • https://mkp-api.fptcloud.com/v1/responses

2. Cơ chế kích hoạt (Khu vực VN)

Hệ thống sẽ ghi nhận vi phạm nếu một địa chỉ IP gửi \ge 600 yêu cầu trả về lỗi 401 Unauthorized trong khoảng thời gian 10 phút (tương đương 10 yêu cầu/giây).

3. Ảnh hưởng đến dịch vụ

Trong trường hợp vi phạm quy tắc trên, quyền truy cập API từ IP tương ứng sẽ bị tạm ngưng. Việc gián đoạn này sẽ kéo dài trong 01 giờ, sau đó hệ thống sẽ tự động khôi phục quyền truy cập.

Lưu ý: Lỗi 401 Unauthorized thường xuất phát từ việc sử dụng API Key không hợp lệ (ví dụ: Key đã bị Leader xóa nhưng thành viên vẫn sử dụng). Vui lòng kiểm tra kỹ trạng thái API Key để tránh gây ảnh hưởng đến quá trình kết nối.

Last updated