Hướng dẫn giải pháp Solution guide មគ្គុទ្ទេសករណ៍ដំណោះស្រាយ Chung / đa lĩnh vực Cross-cutting ឆ្លងកាត់ / ពហុវិស័យ ~10 phút ~10 min ~10 នាទី Đồng bộ 2026-06-10 Synced 2026-06-10 ធ្វើសមកាល 2026-06-10

Khám phá và bảo mật các điểm cuối API của bạn (Miễn phí, Pro và Doanh nghiệp) Discover and secure your API endpoints (Free, Pro, and Business) ស្វែងរកនិងការធានា API របស់អ្នក (ដោយឥតគិតថ្លៃ, អ្នកជំនាញនិងអាជីវកម្ម)

Hướng dẫn chi tiết đồng bộ từ docs Cloudflare — mỗi section có backlink tới đúng vị trí trên trang gốc. Detailed guide synced from Cloudflare docs — each section links to the matching anchor on the official page. មគ្គុទ្ទេសក៍លម្អិតធ្វើសមកាលពី docs Cloudflare — ផ្នែកនីមួយៗមានតំណទៅទីតាំងត្រូវគ្នានៅទំព័រផ្លូវការ។

← Danh mục ← Catalog ← បញ្ជី

Giải thích nhanh Quick context បរិបទរហ័ស

Tutorial đa lĩnh vực — kết hợp nhiều sản phẩm Cloudflare. Tutorial «Discover và secure your API endpoints (Free, Pro, và Business)» giúp bạn làm quen luồng triển khai thật — phù hợp đọc trước khi mở tài liệu gốc tiếng Anh. Đọc phần tóm tắt và lưu ý trước — sau đó mở docs gốc để copy lệnh và cấu hình chi tiết.

Block API abuse, restrict unauthorized access, and monitor endpoint traffic using layered Cloudflare security features.

ការកាត់បន្ថយការប្រើប្រាស់ API ការកាត់បន្ថយការប្រើប្រាស់ access ដែលមិនបានអនុញ្ញាតនិងការត្រួតពិនិត្យការដឹកជញ្ជូន endpoint ដោយប្រើកម្មវិធីសុវត្ថិភាព Cloudflare ។

Lưu ý Note ចំណាំ

Lưu ý trước khi làm Notes before you start ចំណាំមុនពេលចាប់ផ្តើម

  • Đây là bản tóm tắt trên Orange Cloud Learning Hub — không thay thế tài liệu chính thức.
  • Luôn mở liên kết «Tài liệu gốc» bên dưới khi cần lệnh CLI, snippet code và ảnh minh họa đầy đủ.
  • Docs Cloudflare cập nhật thường xuyên — đối chiếu ngày «Rà soát lần cuối» trên trang gốc khi triển khai production.
  • This is a summary on Orange Cloud Learning Hub — it does not replace the official documentation.
  • Open the Official docs link below for CLI commands, code snippets, and full screenshots.
  • Cloudflare docs change frequently — verify the Last reviewed date on the official page before production use.
  • នេះគឺជាការបញ្ជាក់អំពី Orange Cloud Learning Hub — វាគឺជាការផ្លាស់ប្តូរនៃឯកសារផ្លូវការ។
  • ចុចតំណភ្ជាប់ Docs Official នៅខាងក្រោមសម្រាប់ការបញ្ជា CLI, សៀវភៅកូដនិងរូបថតពេញលេញ។
  • Cloudflare បានផ្លាស់ប្តូរជាធម្មតានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅ។

Overview Overview Overview

Phần «Tổng quan» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Overview" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «Overview» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Một khi API của bạn đang được sản xuất và nhận lưu lượng truy cập, bạn cần quyết định điểm cuối nào để bảo vệ đầu tiên, những hạn chế nào để áp dụng, và làm thế nào để theo dõi lạm dụng mà không chặn khách hàng hợp pháp. Hướng dẫn này đi qua quá trình đó trong năm giai đoạn: lưu trữ các điểm cuối của bạn, thực thi các kết nối được mã hóa, hạn chế access để các mô hình lưu lượng truy cập dự kiến, chặn lạm dụng tự động và theo dõi kết quả.
Once your API is in production and receiving traffic, you need to decide which endpoints to protect first, what restrictions to apply, and how to monitor for abuse without blocking legitimate clients. This guide walks through that process in five stages: inventory your endpoints, enforce encrypted connections, restrict access to expected traffic patterns, block automated abuse, and monitor the results.
នៅពេលដែល API របស់អ្នកគឺនៅក្នុងការផលិតនិងទទួលបានការដឹកជញ្ជូនអ្នកត្រូវដោះស្រាយបញ្ចប់ដែលត្រូវការការពារជាលើកដំបូង, ការកាត់បន្ថយដែលត្រូវអនុវត្តនិងរបៀបត្រួតពិនិត្យការប្រើប្រាស់ដោយគ្មានការកាត់បន្ថយអតិថិជនត្រឹមត្រូវ។ វគ្គបណ្តុះបណ្តាលនេះធ្វើដំណើរតាមរយៈដំណើរការនេះក្នុងរយៈពេល 5 ដំណាក់កាល: ការរក្សាទុក endpoints របស់អ្នក, ការអនុវត្តការតភ្ជាប់អ៊ិនគ្រីប, ការកាត់បន្ថយ access ទៅលក្ខណៈពិសេសការដឹកជញ្ជូនដែលគួរឱ្យចាប់អារម្មណ៍, ការកាត់បន្ថយការប្រើប្រាស់ដោយស្វ័យប្រវត្តិនិងការត្រួតពិនិត្យផលិតផល។
Dòng công việc cốt lõi sử dụng các tính năng Cloudflare Application Security (còn được gọi là tường lửa ứng dụng Web hoặc WAF), cài đặt SSL/TLS và bot detection, tất cả đều có sẵn trên các gói miễn phí, chuyên nghiệp và doanh nghiệp. Các cuộc gọi doanh nghiệp bao gồm khả năng API Shield cho các nhóm cần xác thực sơ đồ, xác thực JSON Web Token (JWT) và phân tích chuỗi.
The core workflow uses Cloudflare Application Security (also known as Web Application Firewall or WAF) features, SSL/TLS settings, and bot detection, all available on Free, Pro, and Business plans. Enterprise callouts cover API Shield capabilities for teams that need schema validation, JSON Web Token (JWT) validation, and sequence analysis.
The core workflow uses Cloudflare Application Security (also known as Web Application Firewall or WAF) features, SSL/TLS settings, and bot detection, all available on Free, Pro, and Business plans. Enterprise callouts cover API Shield capabilities for teams that need schema validation, JSON Web Token (JWT) validation, and sequence analysis.
Hầu hết các thủ tục trong hướng dẫn này được cấu hình theo tên miền hoặc zone. Chọn tên miền của bạn trong bảng điều khiển Cloudflare trước khi bắt đầu.
Most procedures in this guide are configured per domain or zone. Select your domain in the Cloudflare dashboard before starting.
ភាគច្រើននៃដំណើរការនៅក្នុងឧបករណ៍នេះត្រូវបានកំណត់តាមតំបន់ឬ zone ។ សូមជ្រើសរើសឧបករណ៍របស់អ្នកនៅក្នុងឧបករណ៍ Cloudflare មុនពេលចាប់ផ្តើម។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Biết những gì bạn đang phơi bày Know what you are exposing សូមដឹងអំពីអ្វីដែលអ្នកបង្ហាញ

Phần «Know what you are exposing» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Know what you are exposing" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «សូមដឹងអំពីអ្វីដែលអ្នកបង្ហាញ» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Trước khi cấu hình bất kỳ quy tắc bảo mật nào, hãy xây dựng một danh sách các điểm cuối API của bạn. Nếu không có danh sách đầy đủ, bạn không thể nhắm mục tiêu bảo vệ trên các con đường chính xác hoặc phát hiện khi một điểm cuối không rõ bắt đầu nhận lưu lượng truy cập.
Before configuring any security rules, build an inventory of your API endpoints. Without a complete list, you cannot target protections at the right paths or detect when an unknown endpoint starts receiving traffic.
មុនពេលដែលអ្នកបង្កើតគោលដៅសុវត្ថិភាពណាមួយ, បានបង្កើតសម្ភារៈនៃការ API របស់អ្នក។ ប្រសិនបើអ្នកមិនមានសៀវភៅពេញលេញ, អ្នកមិនអាចតម្រូវការការការពារនៅលើដំណើរការត្រឹមត្រូវឬរកឃើញពេលដែលបញ្ចប់បញ្ចប់មិនគេស្គាល់ចាប់ផ្តើមទទួលបានការដឹកជញ្ជូន។

Kiểm tra bề mặt API của bạn bằng tay Audit your API surface manually ការត្រួតពិនិត្យផ្ទៃ API របស់អ្នកដោយផ្ទាល់

Phần «Audit your API surface manually» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Audit your API surface manually" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការត្រួតពិនិត្យផ្ទៃ API របស់អ្នកដោយផ្ទាល់» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
  1. Xem lại cấu hình định tuyến của ứng dụng của bạn và liệt kê từng điểm cuối với phương pháp HTTP và các thông số dự kiến.
  1. Review your application's routing configuration and list every endpoint with its HTTP method and expected parameters.
  1. ការពិនិត្យឡើងវិញកំណត់ដំណើរការកម្មវិធីរបស់អ្នកនិងបញ្ចូលគ្នានៃទីបញ្ចប់ទាំងអស់ជាមួយនឹងវិធី HTTP និងទំហំដែលគួរឱ្យចាប់ផ្តើម។
Phát hiện điểm cuối được hỗ trợ bởi AI Xem xét sử dụng một đại lý AI để phân tích các tuyến API được phơi bày trong cơ sở mã của bạn và sau đó tạo ra một sơ đồ OpenAPI từ các phát hiện.
AI-assisted endpoint discovery Consider using an AI agent to analyze the API routes exposed in your codebase and then generate an OpenAPI schema from the findings.
ការរកឃើញបញ្ចប់ដែលបានគាំទ្រដោយ AI សូមអរគុណភាពក្នុងការប្រើអេក្រង់ AI ដើម្បីពិនិត្យមើលដំណើរការ API ដែលត្រូវបានបង្ហាញនៅក្នុងមូលដ្ឋានកូដរបស់អ្នកហើយបន្ទាប់មកបង្កើតគំនិត OpenAPI ពីការរកឃើញ។
  1. Thể loại từng điểm cuối theo mức access (chính thức, công khai, nội bộ). Ưu tiên các điểm cuối chấp nhận tải lên tệp, xử lý thanh toán hoặc trả về dữ liệu nhạy cảm.
  1. Categorize each endpoint by access level (public, authenticated, internal). Prioritize endpoints that accept file uploads, process payments, or return sensitive data.
  1. ប្រភេទបញ្ចប់ទាំងអស់ដោយទំហំ access (ប្រព័ន្ធគ្រប់គ្រង, ដោយផ្ទាល់ខ្លួន, ដោយផ្ទាល់ខ្លួន) ។ គោលដៅនៃបញ្ចប់ដែលទទួលយកការទាញយកឯកសារ, ការដំណើរការការទូទាត់, ឬដំណើរការទូទាត់ទិន្នន័យដែលមានអារម្មណ៍។
| Access level | Description | Example endpoints | | ----------------- | --------------------------------- | -------------------------- | | Public | No authentication required | /api/status, /api/products | | Authenticated | Require a token or session | /api/account, /api/orders | | Internal | Should not be publicly accessible | /api/admin, /api/debug |
| Access level | Description | Example endpoints | | ----------------- | --------------------------------- | -------------------------- | | Public | No authentication required | /api/status, /api/products | | Authenticated | Require a token or session | /api/account, /api/orders | | Internal | Should not be publicly accessible | /api/admin, /api/debug |
| Access level | Description | Example endpoints | | ----------------- | --------------------------------- | -------------------------- | | Public | No authentication required | /api/status, /api/products | | Authenticated | Require a token or session | /api/account, /api/orders | | Internal | Should not be publicly accessible | /api/admin, /api/debug |
  1. Lưu trữ hàng tồn kho trong một bảng tính hoặc tệp sơ đồ OpenAPI để tham khảo khi viết các biểu thức quy tắc trong các phần sau. Nếu bạn đã có một thông số kỹ thuật OpenAPI, bạn có thể sử dụng nó trực tiếp với API Shield schema validation (được bao gồm trong Enterprise callout dưới đây).
  1. Record the inventory in a spreadsheet or OpenAPI schema file for reference when writing rule expressions in later sections. If you already have an OpenAPI specification, you can use it directly with API Shield's schema validation (covered in the Enterprise callout below).
  1. សៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅសៀវភៅ ប្រសិនបើអ្នកមានឯកសារ OpenAPI នៅពេលនេះអ្នកអាចប្រើវាដោយផ្ទាល់ជាមួយនឹងការត្រួតពិនិត្យគំរូ API Shield ។
API Shield Khám phá Endpoint (Enterprise)
API Shield Endpoint Discovery (Enterprise)
API Shield Endpoint Discovery (អាជីវកម្ម)
API Shield có thể tự động phát hiện các điểm cuối API bằng cách phân tích mô hình lưu lượng truy cập của bạn, bề mặt các điểm cuối mà bạn có thể không biết đang được gọi. Điều này bao gồm các điểm cuối bị bỏ rơi hoặc không có tài liệu (còn được gọi là API bóng tối) có thể không được sửa lỗi và không được giám sát. Để biết thêm thông tin, hãy tham khảo API Discovery.
API Shield can automatically discover API endpoints by analyzing your traffic patterns, surfacing endpoints you may not know are being called. This includes abandoned or undocumented endpoints (also known as shadow APIs) that may be unpatched and unmonitored. For more information, refer to API Discovery.
API Shield អាចរកឃើញបញ្ចប់ API ដោយស្វ័យប្រវត្តិដោយការដោះស្រាយគំរូការដឹកជញ្ជូនរបស់អ្នក, ការបង្ហាញបញ្ចប់ដែលអ្នកមិនដឹងថានៅក្នុងការទូរស័ព្ទ។ នេះរួមបញ្ចូលទាំងបញ្ចប់បញ្ចប់ដែលត្រូវបានបាត់បង់ឬមិនមានឯកសារ (គេស្គាល់ផងដែរថាជា API នៃការបាត់បង់) ដែលអាចមិនត្រូវបានបាត់បង់និងមិនត្រូវបានត្រួតពិនិត្យ។ សម្រាប់ព័ត៌មានបន្ថែមសូមមើល API Discovery ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Áp dụng HTTPS cho tất cả lưu lượng truy cập API Enforce HTTPS for all API traffic ការអនុវត្ត HTTPS សម្រាប់ការដឹកជញ្ជូនទាំងអស់ API

Phần «Enforce HTTPS for all API traffic» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Enforce HTTPS for all API traffic" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការអនុវត្ត HTTPS សម្រាប់ការដឹកជញ្ជូនទាំងអស់ API» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Các yêu cầu API chứa thông tin xác thực, mã thông báo và dữ liệu phản hồi mà kẻ tấn công có thể chặn qua các kết nối không được mã hóa. Một số máy khách API lặng lẽ hạ cấp xuống HTTP nếu máy chủ chấp nhận nó, gửi dữ liệu nhạy cảm trong văn bản đơn giản. Áp dụng HTTPS trên cạnh ngăn chặn điều này.
API requests carry credentials, tokens, and response data that attackers can intercept over unencrypted connections. Some API clients silently downgrade to HTTP if the server accepts it, sending sensitive data in plaintext. Enforcing HTTPS at the edge prevents this.
ទម្រង់ API ផ្តល់នូវឯកសារឯកសារ, ស្លាកនិងទិន្នន័យការឆ្លើយតបដែលអ្នកប្រឆាំងនឹងការឆ្លើយតបអាចការឆ្លើយតបតាមការតភ្ជាប់ដែលមិនត្រូវបានកាត់បន្ថយ។ កុំព្យូទ័រ API មួយចំនួនបានកាត់បន្ថយទៅ HTTP ប្រសិនបើអ្នកផ្គត់ផ្គង់ផ្គត់ផ្គង់ផ្គត់ផ្គង់ផ្គង់ផ្គត់ផ្គង់ផ្គង់ផ្គត់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ផ្គង់ ការអនុវត្ត HTTPS នៅលើការកាត់បន្ថយនេះនឹងការពារនេះ។

Cài đặt SSL/TLS chế độ mã hóa Set your SSL/TLS encryption mode ការកំណត់ SSL / TLS របស់អ្នក

Phần «Set your SSL/TLS encryption mode» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Set your SSL/TLS encryption mode" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការកំណត់ SSL / TLS របស់អ្នក» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Đặt chế độ mã hóa của bạn thành Full (Strict) để mã hóa lưu lượng truy cập giữa khách truy cập và Cloudflare và giữa Cloudflare và máy chủ nguồn của bạn. Chế độ này yêu cầu một giấy chứng nhận hợp lệ về nguồn gốc của bạn.
Set your encryption mode to Full (Strict) to encrypt traffic between visitors and Cloudflare and between Cloudflare and your origin server. This mode requires a valid certificate on your origin.
ការកំណត់រចនាសម្ព័ន្ធការអ៊ិនធឺណិតរបស់អ្នកទៅ Full (Strict) ដើម្បីអ៊ិនធឺណិតរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធរចនាសម្ព័ន្ធ ប្រព័ន្ធនេះតម្រូវឱ្យមានវិញ្ញាបនប័ត្រដែលមានប្រសិទ្ធិភាពអំពីដើមរបស់អ្នក។
  1. Trong bảng điều khiển Cloudflare, đi đến trang SSL/TLS Overview.
  1. In the Cloudflare dashboard, go to the SSL/TLS Overview page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ SSL/TLS Overview ។
  1. Đối với SSL/TLS encryption, hãy chọn Full (Strict).
  1. For SSL/TLS encryption, select Full (Strict).
  1. សម្រាប់ SSL/TLS encryption ចុច Full (Strict) ។
Để biết thêm thông tin về các chế độ mã hóa và yêu cầu của chúng, hãy tham khảo SSL/TLS encryption modes.
For more information on encryption modes and their requirements, refer to SSL/TLS encryption modes.
សម្រាប់ព័ត៌មានបន្ថែមអំពីរបៀបអ៊ិនគ្រីបនិងតម្រូវការរបស់ពួកគេមើល SSL/TLS encryption modes ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Chuyển sang Always Use HTTPS Turn on Always Use HTTPS ទាញយក Always Use HTTPS

Phần «Turn on Always Use HTTPS» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Turn on Always Use HTTPS" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ទាញយក Always Use HTTPS» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Always Use HTTPS chuyển hướng tất cả các yêu cầu HTTP sang HTTPS cho mỗi tên miền con và máy chủ trong ứng dụng của bạn. Điều này ngăn không cho khách hàng vô tình gửi yêu cầu API qua các kết nối không được mã hóa.
Always Use HTTPS redirects all HTTP requests to HTTPS for every subdomain and host in your application. This prevents clients from accidentally sending API requests over unencrypted connections.
Always Use HTTPS អនុញ្ញាតឱ្យគ្រប់តម្រូវការ HTTP ទៅ HTTPS សម្រាប់គ្រប់តម្រូវការក្នុងកម្មវិធីរបស់អ្នក។ នេះនឹងជួយអតិថិជនក្នុងការផ្ញើអតិថិជន API ដោយគ្មានការបញ្ចូលគ្នានៃការបញ្ចូលគ្នានៃការបញ្ចូលគ្នានៃការបញ្ចូលគ្នានៃការបញ្ចូល។
Nếu chỉ một số phần của ứng dụng của bạn hỗ trợ HTTPS, đừng bật Always Use HTTPS. Sử dụng single redirect để chuyển hướng các con đường cụ thể API thay vào đó. Hãy tham khảo Redirect admin area requests to HTTPS để lấy ví dụ.
If only some parts of your application support HTTPS, do not turn on Always Use HTTPS. Use a single redirect to redirect specific API paths instead. Refer to Redirect admin area requests to HTTPS for an example.
ប្រសិនបើផ្នែកមួយចំនួននៃកម្មវិធីរបស់អ្នកតែគាំទ្រ HTTPS អ្នកមិនអាចបើក Always Use HTTPS ។ ប្រើ single redirect ដើម្បីផ្លាស់ប្តូរផ្លូវ API ជាផ្នែកមួយ។ សូមមើល Redirect admin area requests to HTTPS សម្រាប់ឧទាហរណ៍។
  1. Trong bảng điều khiển Cloudflare, đi đến trang SSL/TLS Overview.
  1. In the Cloudflare dashboard, go to the SSL/TLS Overview page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ SSL/TLS Overview ។
  1. Đảm bảo rằng SSL/TLS encryption mode không được đặt thành Off. Tùy chọn Always Use HTTPS không hiển thị khi mã hóa bị tắt.
  2. Đi đến trang Edge Certificates.
  1. Verify that your SSL/TLS encryption mode is not set to Off. The Always Use HTTPS option is not visible when encryption is off.
  2. Go to the Edge Certificates page.
  1. សូមបញ្ជាក់ថា SSL/TLS encryption mode របស់អ្នកមិនត្រូវបានកំណត់ទៅ Off ។ ទម្រង់ Always Use HTTPS មិនអាចមើលឃើញនៅពេលដែលការអេក្រង់អេក្រង់អេក្រង់អេក្រង់អេក្រង់អេក្រង់អេក្រង់អេក្រង់អេក្រង់អេក្រង់អេក្រង់។
  2. សូមចូលទៅក្នុងទំព័រ Edge Certificates ។
  1. Nhấp vào Always Use HTTPS
  1. Turn on Always Use HTTPS.
  1. សូមចុច Always Use HTTPS ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Đặt tối thiểu TLS phiên bản thành 1.2 Set minimum TLS version to 1.2 ទាញយក TLS ទាញយក 1.2

Phần «Set minimum TLS version to 1.2» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Set minimum TLS version to 1.2" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ទាញយក TLS ទាញយក 1.2» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Vì API có thể chứa thông tin nhạy cảm, chẳng hạn như thông tin xác thực và mã thông báo, bạn muốn chọn phiên bản tối thiểu TLS phù hợp với điều này trong tâm trí.
Since APIs can carry sensitive information, like credentials and tokens, you want to select an appropriate minimum TLS version with this in mind.
ដោយសារតែ APIs អាចរក្សាទុកទិន្នន័យដែលមានអត្ថប្រយោជន៍ដូចជាវិញ្ញាបនប័ត្រនិង tokens, អ្នកចង់ជ្រើសរើសកំណត់ទិន្នន័យទិន្នន័យទិន្នន័យទិន្នន័យ TLS ដោយគួរឱ្យចាប់អារម្មណ៍នេះ។
TLS 1.0 và 1.1 có các lỗ hổng đã biết. Đặt mức tối thiểu là TLS 1.2 sẽ loại trừ các kết nối từ các máy khách sử dụng các giao thức cũ hơn.
TLS 1.0 and 1.1 have known vulnerabilities. Setting the minimum to TLS 1.2 rejects connections from clients using older protocols.
TLS 1.0 និង 1.1 មានលក្ខណៈពិសេសដែលបានដឹង។ ការកំណត់តូចទៅ TLS 1.2 បាត់បន្ថយការតភ្ជាប់ពីអតិថិជនដែលប្រើប្រព័ន្ធប្រតិបត្តិការប្រហែលប្រហែលប្រហែលប្រហែល។
  1. Trong bảng điều khiển Cloudflare, đi đến trang Edge Certificates.
  1. In the Cloudflare dashboard, go to the Edge Certificates page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Edge Certificates ។
  1. Đối với Minimum TLS Version, hãy chọn TLS 1.2.
  1. For Minimum TLS Version, select TLS 1.2.
  1. សម្រាប់ Minimum TLS Version ចុច TLS 1.2 ។
Để biết thêm thông tin, hãy tham khảo Minimum TLS Version.
For more information, refer to Minimum TLS Version.
សម្រាប់ព័ត៌មានបន្ថែមសូមមើល Minimum TLS Version ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Tắt HTTPS tự động viết lại cho API-chỉ tên miền Disable Automatic HTTPS Rewrites for API-only domains បិទ HTTPS ដោយស្វ័យប្រវត្តិ Rewrites សម្រាប់ API-តែឧបករណ៍

Phần «Disable Automatic HTTPS Rewrites for API-only domains» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Disable Automatic HTTPS Rewrites for API-only domains" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «បិទ HTTPS ដោយស្វ័យប្រវត្តិ Rewrites សម្រាប់ API-តែឧបករណ៍» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Automatic HTTPS Rewrites thay đổi HTTP liên kết đến HTTPS trong các câu trả lời HTML. Đối với các điểm cuối API trả về JSON hoặc nội dung không phải HTML khác, việc viết lại này là không cần thiết và có thể gây ra hành vi bất ngờ nếu các khách hàng API làm theo các URL được viết lại. Nếu miền của bạn chỉ phục vụ lưu lượng truy cập API, hãy tắt cài đặt này.
Automatic HTTPS Rewrites changes HTTP links to HTTPS within HTML responses. For API endpoints that return JSON or other non-HTML content, this rewriting is unnecessary and can cause unexpected behavior if API clients follow rewritten URLs. If your domain serves only API traffic, turn off this setting.
Automatic HTTPS Rewrites បានផ្លាស់ប្តូរ HTTP ទៅ HTTPS នៅក្នុងការឆ្លើយតប HTML ។ សម្រាប់ការបញ្ចប់ API ដែលធ្វើឱ្យ JSON ឬតំបន់បណ្ដាញផ្សេងទៀតដែលមិនមាន HTML ការសរសេរថ្មីនេះគឺមិនចាំបាច់ហើយអាចធ្វើឱ្យប្រសិនបើអតិថិជន API បានតាមរយៈ URLs បានសរសេរថ្មី។ ប្រសិនបើតំបន់បណ្ដាញរបស់អ្នកគ្រាន់តែផ្តល់សេវាកម្ម API ទិន្នន័យបញ្ចូលដំណឹងនេះ។
  1. Trong bảng điều khiển Cloudflare, đi đến trang Edge Certificates.
  1. In the Cloudflare dashboard, go to the Edge Certificates page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Edge Certificates ។
  1. Tắt Automatic HTTPS Rewrites
  1. Turn off Automatic HTTPS Rewrites.
  1. ទាញយក Automatic HTTPS Rewrites ។
Nếu tên miền của bạn phục vụ cả một trang web và API, hãy giữ HTTPS tự động viết lại cho trang web. Việc viết lại chỉ áp dụng cho các câu trả lời HTML, vì vậy các câu trả lời JSON API không bị ảnh hưởng.
If your domain serves both a website and an API, keep Automatic HTTPS Rewrites on for the website. The rewriting only applies to HTML responses, so JSON API responses are not affected.
ប្រសិនបើអាសយដ្ឋានរបស់អ្នកផ្តល់សេវាកម្មសម្រាប់គេហទំព័រនិង API, សូមរក្សាទុក Automatic HTTPS Rewrites សម្រាប់គេហទំព័រនេះ។ ការសរសេរច្នៃប្រឌិតត្រូវបានអនុវត្តសម្រាប់ HTML ដំណោះស្រាយតែប៉ុណ្ណោះ, ដូច្នេះ JSON API ដំណោះស្រាយមិនត្រូវបានប៉ះពាល់។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Hạn chế access đến các điểm cuối của bạn API Restrict access to your API endpoints ការកាត់បន្ថយ access ទៅ API របស់អ្នក

Phần «Restrict access vào API endpoints» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Restrict access to your API endpoints" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការកាត់បន្ថយ access ទៅ API របស់អ្នក» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Các khách hàng API hợp pháp gửi các mô hình yêu cầu có thể dự đoán được: các phương pháp HTTP cụ thể, tiêu đề dự kiến như Content-Type: application/json và yêu cầu các con đường được tài liệu. Ứng dụng bảo mật custom rules cho phép bạn chặn lưu lượng truy cập lệch từ các mô hình này. Rate limiting rules Cap yêu cầu khối lượng cho mỗi khách hàng để ngăn chặn lạm dụng.
Legitimate API clients send predictable request patterns: specific HTTP methods, expected headers like Content-Type: application/json, and requests to documented paths. Application Security custom rules let you block traffic that deviates from these patterns. Rate limiting rules cap request volume per client to prevent abuse.
Legitimate API clients send predictable request patterns: specific HTTP methods, expected headers like Content-Type: application/json, and requests to documented paths. Application Security custom rules let you block traffic that deviates from these patterns. Rate limiting rules cap request volume per client to prevent abuse.

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Block yêu cầu thiếu headers mong đợi Block requests missing expected headers Blocks Requests ការបាត់បន្ថយ Headers អរគុណ

Phần «Block requests missing expected headers» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Block requests missing expected headers" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «Blocks Requests ការបាត់បន្ថយ Headers អរគុណ» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Các khách hàng API thường bao gồm tiêu đề Content-Type và có thể bao gồm tiêu đề Authorization hoặc tiêu đề khóa API tùy chỉnh. Yêu cầu đến các con đường API của bạn thiếu các tiêu đề này không đến từ khách hàng dự kiến của bạn.
API clients typically include a Content-Type header and may include an Authorization header or a custom API key header. Requests to your API paths that lack these headers are not from your expected clients.
កុំព្យូទ័រ API ជាទូទៅរួមបញ្ចូលគោលបំណង Content-Type និងអាចរួមបញ្ចូលគោលបំណង Authorization ឬគោលបំណងគោលបំណង API ។ គោលបំណងទៅលើផ្លូវរបស់អ្នក API ដែលមិនមានកំណត់ទាំងនេះគឺមិនពីអតិថិជនដែលអ្នកគិត។
Các quy tắc bảo mật tùy chỉnh sau đây khối yêu cầu đến /api/ đường dẫn mà đang thiếu một Content-Type header. Điều chỉnh đường dẫn và kiểm tra tiêu đề để phù hợp với API của bạn.
The following custom security rule blocks requests to /api/ paths that are missing a Content-Type header. Adjust the path and header checks to match your API.
ទោះជាយ៉ាងណាក៏ដោយគោលបំណងសុវត្ថិភាពផ្ទាល់ខ្លួនដូចខាងក្រោមនឹងប្លុកទម្រង់ទៅ /api/ ទម្រង់ដែលមិនមាន Content-Type header ។ ការត្រួតពិនិត្យដំណើរការនិងការត្រួតពិនិត្យ header ដើម្បីត្រឹមត្រូវជាមួយ API របស់អ្នក។
  1. Trong bảng điều khiển Cloudflare, đi đến Security \> Security rules.
  1. In the Cloudflare dashboard, go to Security \> Security rules.
  1. នៅលើប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅ Security \> Security rules ។
  1. Chọn Create rule \> Custom rules.
  2. Xác định tên quy tắc Ví dụ như Block API requests missing Content-Type.
  3. Trong trình soạn thảo biểu thức, nhập:
  1. Select Create rule \> Custom rules.
  2. Define the rule name. For example, Block API requests missing Content-Type.
  3. In the expression editor, enter:
  1. សូមចុច Create rule > Custom rules ។
  2. សូមបញ្ជាក់ឈ្មោះច្បាប់។ ដូចជា Block API requests missing Content-Type ។
  3. ក្នុងកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធី, enter:
text
(starts_with(http.request.uri.path, "/api/") and not len(http.request.headers["content-type"][0]) > 0)
  1. Đối với Choose action, hãy chọn Block.
  2. Chọn Deploy
  1. For Choose action, select Block.
  2. Select Deploy.
  1. សម្រាប់ Choose action ចុច Block ។
  2. សូមជ្រើស Deploy ។
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và tên miền của bạn.
  2. Đi đến Security \> WAF \> Custom rules.
  3. Chọn Create rule
  4. Xác định tên quy tắc Ví dụ như Block API requests missing Content-Type.
  5. Trong trình soạn thảo biểu thức, nhập:
  1. Log in to the Cloudflare dashboard ↗, and select your account and domain.
  2. Go to Security \> WAF \> Custom rules.
  3. Select Create rule.
  4. Define the rule name. For example, Block API requests missing Content-Type.
  5. In the expression editor, enter:
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីរបស់អ្នកនិងតំបន់បណ្ដាញរបស់អ្នក។
  2. ចុចទៅ Security \> WAF \> Custom rules ។
  3. សូមជ្រើស Create rule ។
  4. សូមបញ្ជាក់ឈ្មោះច្បាប់។ ដូចជា Block API requests missing Content-Type ។
  5. ក្នុងកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធី, enter:
text
(starts_with(http.request.uri.path, "/api/") and not len(http.request.headers["content-type"][0]) > 0)
  1. Đối với Choose action, hãy chọn Block.
  2. Chọn Deploy
  1. For Choose action, select Block.
  2. Select Deploy.
  1. សម្រាប់ Choose action ចុច Block ។
  2. សូមជ្រើស Deploy ។

Giới hạn HTTP phương pháp cho từng điểm cuối Restrict HTTP methods per endpoint ការកាត់បន្ថយ HTTP ឧបករណ៍ per endpoint

Phần «Restrict HTTP methods per endpoint» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Restrict HTTP methods per endpoint" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការកាត់បន្ថយ HTTP ឧបករណ៍ per endpoint» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Nếu điểm cuối /api/users của bạn chỉ chấp nhận yêu cầu GET và POST, hãy chặn tất cả các phương pháp HTTP khác trên con đường đó. Điều này ngăn chặn kẻ tấn công điều tra với yêu cầu PUT, DELETE hoặc PATCH chống lại các điểm cuối không hỗ trợ họ.
If your /api/users endpoint only accepts GET and POST requests, block all other HTTP methods on that path. This prevents attackers from probing with PUT, DELETE, or PATCH requests against endpoints that do not support them.
If your /api/users endpoint only accepts GET and POST requests, block all other HTTP methods on that path. This prevents attackers from probing with PUT, DELETE, or PATCH requests against endpoints that do not support them.
  1. Trong bảng điều khiển Cloudflare, đi đến Security \> Security rules.
  1. In the Cloudflare dashboard, go to Security \> Security rules.
  1. នៅលើប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅ Security \> Security rules ។
  1. Chọn Create rule \> Custom rules.
  2. Xác định tên quy tắc Ví dụ như Block unexpected methods on /api/users.
  3. Trong trình soạn thảo biểu thức, nhập:
  1. Select Create rule \> Custom rules.
  2. Define the rule name. For example, Block unexpected methods on /api/users.
  3. In the expression editor, enter:
  1. សូមចុច Create rule > Custom rules ។
  2. សូមបញ្ជាក់ឈ្មោះច្បាប់។ ដូចជា Block unexpected methods on /api/users ។
  3. ក្នុងកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធី, enter:
text
(http.request.uri.path eq "/api/users" and http.request.method ne "GET" and http.request.method ne "POST")
Điều chỉnh con đường và cho phép các phương pháp phù hợp với điểm cuối của bạn.
Adjust the path and allowed methods to match your endpoint.
ការផ្លាស់ប្តូរដំណើរការនិងអនុញ្ញាតឱ្យបច្ចេកវិទ្យានៃការផ្លាស់ប្តូរបច្ចេកវិទ្យានៃការផ្លាស់ប្តូរបច្ចេកវិទ្យានៃការផ្លាស់ប្តូរ។
  1. Đối với Choose action, hãy chọn Block.
  2. Chọn Deploy
  1. For Choose action, select Block.
  2. Select Deploy.
  1. សម្រាប់ Choose action ចុច Block ។
  2. សូមជ្រើស Deploy ។
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và tên miền của bạn.
  2. Đi đến Security \> WAF \> Custom rules
  3. Chọn Create rule
  4. Xác định tên quy tắc Ví dụ như Block unexpected methods on /api/users.
  5. Trong trình soạn thảo biểu thức, nhập:
  1. Log in to the Cloudflare dashboard ↗, and select your account and domain.
  2. Go to Security \> WAF \> Custom rules
  3. Select Create rule.
  4. Define the rule name. For example, Block unexpected methods on /api/users.
  5. In the expression editor, enter:
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីរបស់អ្នកនិងតំបន់បណ្ដាញរបស់អ្នក។
  2. ចុចទៅ Security & > WAF > Custom rules
  3. សូមជ្រើស Create rule ។
  4. សូមបញ្ជាក់ឈ្មោះច្បាប់។ ដូចជា Block unexpected methods on /api/users ។
  5. ក្នុងកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធីសរសេរកម្មវិធី, enter:
text
(http.request.uri.path eq "/api/users" and http.request.method ne "GET" and http.request.method ne "POST")
Điều chỉnh con đường và cho phép các phương pháp phù hợp với điểm cuối của bạn.
Adjust the path and allowed methods to match your endpoint.
ការផ្លាស់ប្តូរដំណើរការនិងអនុញ្ញាតឱ្យបច្ចេកវិទ្យានៃការផ្លាស់ប្តូរបច្ចេកវិទ្យានៃការផ្លាស់ប្តូរបច្ចេកវិទ្យានៃការផ្លាស់ប្តូរ។
  1. Đối với Choose action, hãy chọn Block.
  2. Chọn Deploy
  1. For Choose action, select Block.
  2. Select Deploy.
  1. សម្រាប់ Choose action ចុច Block ។
  2. សូមជ្រើស Deploy ។
Lặp lại mô hình này cho mỗi điểm cuối với các phương pháp bị hạn chế. Bạn có thể kết hợp nhiều con đường thành một quy tắc duy nhất bằng cách sử dụng or operators nếu chúng chia sẻ cùng một phương pháp được phép.
Repeat this pattern for each endpoint with restricted methods. You can combine multiple paths into a single rule using or operators if they share the same allowed methods.
ការធ្វើតេស្តនេះធ្វើឱ្យប្រសើរឡើងសម្រាប់បញ្ចប់ទាំងអស់ជាមួយនឹងវិធីសាស្រ្តកាត់បន្ថយ។ អ្នកអាចរួមបញ្ចូលដំណោះស្រាយជាច្រើនទៅក្នុងដំណោះស្រាយតែមួយដោយប្រើ or operators ប្រសិនបើពួកគេរួមបញ្ចូលដំណោះស្រាយអនុញ្ញាតដូចគ្នា។
Tip
Tip
Tip
Thay vì tạo quy tắc theo cách thủ công cho mỗi điểm cuối, hãy xem xét việc tạo một fallthrough custom rule duy nhất. Bạn cần phải:
Instead of manually creating rules for each endpoint, consider creating a single fallthrough custom rule. You need to:
ដូច្នេះប្រសិនបើអ្នកចង់បង្កើតស្ដង់ដារដោយផ្ទាល់សម្រាប់បញ្ចប់ទាំងអស់អ្នកគួរតែបង្កើត fallthrough custom rule មួយតែមួយ។ អ្នកត្រូវតែ:
  1. Thêm điểm cuối API vào Endpoint Management from a schema hoặc manually.
  2. Tạo quy tắc vượt qua ngăn chặn các yêu cầu không khớp với điểm cuối đã lưu trong Endpoint Management.
  1. Add your API endpoints to Endpoint Management from a schema or manually.
  2. Create a fallthrough rule that blocks requests that do not match a saved endpoint in Endpoint Management.
  1. បន្ថែមបញ្ចប់ API របស់អ្នកទៅ Endpoint Management from a schema ឬ manually ។
  2. បានបង្កើតกฎការបង្វិលដែលកាត់បន្ថយសំណួរដែលមិនត្រឹមត្រូវជាមួយបញ្ចប់ដែលបានសរសេរនៅក្នុង Endpoint Management ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Giới hạn tỷ lệ API điểm cuối Rate limit API endpoints លក្ខណៈពិសេស API Endpoints

Phần «Rate limit API endpoints» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Rate limit API endpoints" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «លក្ខណៈពិសេស API Endpoints» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Các điểm cuối API nhận được lạm dụng nhắm mục tiêu nhiều hơn web pages bởi vì những kẻ tấn công có thể gọi chúng ở tốc độ máy mà không cần trình duyệt. Rate limiting chặn số lượng yêu cầu một máy khách duy nhất có thể gửi trong một cửa sổ thời gian.
API endpoints receive more targeted abuse than web pages because attackers can call them at machine speed without rendering a browser. Rate limiting caps the number of requests a single client can send within a time window.
កុំព្យូទ័រ API បានទទួលបានការទូទាត់ដែលមានតម្រូវការច្រើនជាង pages ដោយសារតែអ្នកប្រឆាំងនឹងការទូទាត់អាចទូរស័ព្ទទៅពួកគេដោយល្បឿនម៉ាស៊ីនដោយគ្មានការបង្ហាញបណ្តាញ។ Rate limiting កាត់បន្ថយចំនួននៃតម្រូវការដែលអតិថិជនមួយអាចផ្ញើក្នុងរយៈពេលមួយ។
Tạo các quy tắc rate limiting riêng biệt cho các điểm cuối xác thực và không xác thực. Các điểm cuối không xác thực (đăng nhập, đăng ký, đặt lại mật khẩu) cần giới hạn chặt chẽ hơn vì chúng là mục tiêu chính cho credential stuffing và các cuộc tấn công bạo lực thô.
Create separate rate limiting rules for authenticated and unauthenticated endpoints. Unauthenticated endpoints (login, registration, password reset) need tighter limits because they are primary targets for credential stuffing and brute force attacks.
បានបង្កើតកំណត់ rate limiting សម្រាប់កំណត់បញ្ចប់ដែលមានប្រសិទ្ធិភាពនិងមិនមានប្រសិទ្ធិភាព។ កុំព្យូទ័រដែលមិនមានអត្ថប្រយោជន៍ (ការចុះឈ្មោះ, ការចុះឈ្មោះ, ការកំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់) មានតម្រូវការកំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់កំណត់ credential stuffing ។
Ví dụ sau đây giới hạn yêu cầu đến /api/auth/login đến 10 mỗi phút cho mỗi địa chỉ IP. Điều chỉnh con đường, yêu cầu ngưỡng và thời gian cho điểm cuối của bạn.
The following example limits requests to /api/auth/login to 10 per minute per IP address. Adjust the path, request threshold, and period for your endpoints.
ឧទាហរណ៍ខាងក្រោមនេះបានកំណត់តម្រូវការទៅ /api/auth/login ទៅ 10 ក្នុងមួយ នាទីសម្រាប់អាសយដ្ឋាន IP ។ សូមផ្ដល់នូវដំណោះស្រាយនិងតម្រូវការសម្រាប់ចំណុចបញ្ចប់របស់អ្នក
  1. Trong bảng điều khiển Cloudflare, đi đến trang Security rules.
  1. In the Cloudflare dashboard, go to the Security rules page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Security rules ។
  1. Chọn Create rule \> Rate limiting rules.
  2. Nhập tên mô tả Ví dụ như Rate limit login endpoint.
  3. Trong Field, hãy chọn URI Path. Đặt Operator thành equals và Value thành /api/auth/login.
  4. Bên dưới With the same characteristics, thêm IP.
  5. Trong When rate exceeds, đặt Requests thành 10 và Period thành 1 minute.
  6. Trong Then take action, chọn Block.
  7. Đặt Duration (thời gian giảm thiểu) thành 1 minute.
  8. Chọn Deploy
  1. Select Create rule \> Rate limiting rules.
  2. Enter a descriptive name. For example, Rate limit login endpoint.
  3. In the Field drop-down, select URI Path. Set Operator to equals and Value to /api/auth/login.
  4. Under With the same characteristics, add IP.
  5. Under When rate exceeds, set Requests to 10 and Period to 1 minute.
  6. Under Then take action, select Block.
  7. Set the Duration (mitigation timeout) to 1 minute.
  8. Select Deploy.
  1. សូមចុច Create rule > Rate limiting rules ។
  2. ទាញយកឈ្មោះដែលមានលក្ខណៈពិសេស ដូចជា Rate limit login endpoint ។
  3. នៅលើ Field ទាញយកចុច URI Path ។ ទាញយក Operator ទៅ equals និង Value ទៅ /api/auth/login ។
  4. នៅក្រោម With the same characteristics បន្ថែម IP ។
  5. នៅក្រោម When rate exceeds បានកំណត់ Requests ទៅ 10 និង Period ទៅ 1 minute ។
  6. នៅក្រោម Then take action ចុច Block ។
  7. ទាញយក Duration ទៅ 1 minute ។
  8. សូមជ្រើស Deploy ។
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và khu vực của bạn.
  2. Đi đến Security \> WAF \> Rate limiting rules.
  3. Chọn Create rule
  4. Nhập tên mô tả Ví dụ như Rate limit login endpoint.
  5. Trong Field, hãy chọn URI Path. Đặt Operator thành equals và Value thành /api/auth/login.
  6. Bên dưới With the same characteristics, thêm IP.
  7. Trong When rate exceeds, đặt Requests thành 10 và Period thành 1 minute.
  8. Trong Then take action, chọn Block.
  9. Đặt Duration (thời gian giảm thiểu) thành 1 minute.
  10. Chọn Deploy
  1. Log in to the Cloudflare dashboard ↗, and select your account and zone.
  2. Go to Security \> WAF \> Rate limiting rules.
  3. Select Create rule.
  4. Enter a descriptive name. For example, Rate limit login endpoint.
  5. In the Field drop-down, select URI Path. Set Operator to equals and Value to /api/auth/login.
  6. Under With the same characteristics, add IP.
  7. Under When rate exceeds, set Requests to 10 and Period to 1 minute.
  8. Under Then take action, select Block.
  9. Set the Duration (mitigation timeout) to 1 minute.
  10. Select Deploy.
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីនិងតំបន់របស់អ្នក។
  2. ចុចទៅ Security \> WAF \> Rate limiting rules ។
  3. សូមជ្រើស Create rule ។
  4. ទាញយកឈ្មោះដែលមានលក្ខណៈពិសេស ដូចជា Rate limit login endpoint ។
  5. នៅលើ Field ទាញយកចុច URI Path ។ ទាញយក Operator ទៅ equals និង Value ទៅ /api/auth/login ។
  6. នៅក្រោម With the same characteristics បន្ថែម IP ។
  7. នៅក្រោម When rate exceeds បានកំណត់ Requests ទៅ 10 និង Period ទៅ 1 minute ។
  8. នៅក្រោម Then take action ចុច Block ។
  9. ទាញយក Duration ទៅ 1 minute ។
  10. សូមជ្រើស Deploy ។
Để biết thêm thông tin về các thông số rate limiting và tính năng đếm, hãy tham khảo Rate limiting parameters.
For more information on rate limiting parameters and counting characteristics, refer to Rate limiting parameters.
សម្រាប់ព័ត៌មានបន្ថែមអំពីទំហំ rate limiting និងលក្ខណៈពិសេសការគណនី, សូមមើល Rate limiting parameters ។
Quy tắc Rate limiting có thể cho phép một số lượng nhỏ các yêu cầu dư thừa trước khi thực thi bắt đầu, do chống lại sự chậm trễ lây lan trên các trung tâm dữ liệu. Để biết thêm thông tin, hãy tham khảo Request rate calculation.
Rate limiting rules may allow a small number of excess requests before enforcement starts, due to counter propagation delays across data centers. For more information, refer to Request rate calculation.
គោលដៅ Rate limiting អាចអនុញ្ញាតឱ្យមានទំហំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទ័រ។ សម្រាប់ព័ត៌មានបន្ថែមសូមមើល Request rate calculation ។
Đối với một ví dụ cụ thể về API sử dụng phím API làm thuộc tính đếm, hãy xem Rate limiting rule examples.
For an API-specific example using an API key as a counting characteristic, refer to Rate limiting rule examples.
សម្រាប់ឧទាហរណ៍ API ដែលមានលក្ខណៈពិសេសដោយប្រើគោលដៅ API ដូចជាលក្ខណៈពិសេសកំណត់, សូមមើល Rate limiting rule examples ។
Xác nhận sơ đồ và JWT Xác nhận (Enterprise)
Schema Validation and JWT Validation (Enterprise)
ការត្រួតពិនិត្យគំរូនិង JWT ការត្រួតពិនិត្យ (Enterprise)
API Shield có thể xác nhận các yêu cầu đến chống lại sơ đồ OpenAPI của bạn, chặn các yêu cầu với các thông số bất ngờ, phương pháp hoặc loại nội dung trước khi chúng đến nguồn của bạn. Tải lên sơ đồ của bạn hoặc để Cloudflare học nó từ lưu lượng truy cập của bạn. Để biết thêm thông tin, hãy tham khảo Schema validation.
API Shield can validate incoming requests against your OpenAPI schema, blocking requests with unexpected parameters, methods, or content types before they reach your origin. Upload your schema or let Cloudflare learn it from your traffic. For more information, refer to Schema validation.
API Shield អាចអនុញ្ញាតឱ្យការអនុញ្ញាតតម្រូវការចូលទៅប្រឆាំងនឹងគម្រោង OpenAPI របស់អ្នក, ការកាត់បន្ថយតម្រូវការដែលមានទំហំគួរឱ្យចាប់អារម្មណ៍បច្ចេកទេសឬប្រភេទសម្ភារៈមុនពេលដែលពួកគេបានជួបប្រទះរបស់អ្នក។ ទាញយកគំនិតរបស់អ្នកឬអនុញ្ញាតឱ្យ Cloudflare បានរៀនវាពីការដឹកជញ្ជូនរបស់អ្នក។ សម្រាប់ព័ត៌មានបន្ថែមសូមមើល Schema validation ។
API Shield cũng có thể xác nhận JSON Web Tokens (JWTs) ở cạnh, từ chối token đã hết hạn, bị thay đổi hoặc không hợp lệ trước khi yêu cầu đến nguồn gốc của bạn. Điều này đòi hỏi phải thêm các khóa công khai của nhà phát hành JWT của bạn và tạo quy tắc xác thực. Để biết thêm thông tin, hãy tham khảo JSON Web Tokens validation.
API Shield can also validate JSON Web Tokens (JWTs) at the edge, rejecting expired, tampered, or invalid tokens before requests reach your origin. This requires adding your JWT issuer's public keys and creating a validation rule. For more information, refer to JSON Web Tokens validation.
API Shield អាចត្រួតពិនិត្យ JSON Web Tokens (JWTs) នៅលើផ្នែកខាងលិចដោយការបាត់បង់ tokens ដែលបានបាត់បង់, បានបាត់បង់, ឬមិនត្រឹមត្រូវមុនពេលដែលតម្រូវការបានទទួលបានប្រភពរបស់អ្នក។ វាមានតម្រូវការដើម្បីបន្ថែមគោលបំណងឯកជនរបស់អ្នក JWT និងបង្កើតគោលបំណងការត្រួតពិនិត្យ។ សម្រាប់ព័ត៌មានបន្ថែមសូមមើល JSON Web Tokens validation ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Bảo vệ chống lại sự lạm dụng tự động API Protect against automated API abuse ការពារពីការប្រើប្រាស់ដោយស្វ័យប្រវត្តិ API

Phần «Bảo vệ against automated API abuse» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Protect against automated API abuse" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការពារពីការប្រើប្រាស់ដោយស្វ័យប្រវត្តិ API» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Các bot gọi các điểm cuối API ở tốc độ máy mà không cần trình duyệt. Các cuộc tấn công tự động phổ biến chống lại các API bao gồm nạp thông tin chống lại các điểm cuối xác thực, thu thập dữ liệu thông qua các điểm cuối liệt kê và thao tác hàng tồn kho thông qua các điểm cuối giỏ hàng hoặc thanh toán.
Bots call API endpoints at machine speed without browser overhead. Common automated attacks against APIs include credential stuffing against authentication endpoints, data scraping through listing endpoints, and inventory manipulation through cart or checkout endpoints.
កុំព្យូទ័រហៅ API កុំព្យូទ័រនៅលឿនម៉ាស៊ីនដោយគ្មានកុំព្យូទ័របង្អួច។ ការជួបប្រទះដោយស្វ័យប្រវត្តិប្រឆាំងនឹង API បានរួមបញ្ចូលទាំងការបំពាក់សញ្ញាបនប័ត្រប្រឆាំងនឹងកំណត់បញ្ចប់ការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យការត្រួតពិនិត្យ។

Turn on Bot Fight Mode (Miễn phí) Turn on Bot Fight Mode (Free) ចុចលើ Bot Fight Mode (ដោយឥតគិតថ្លៃ)

Phần «Turn on Bot Fight Mode (Free)» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Turn on Bot Fight Mode (Free)" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ចុចលើ Bot Fight Mode (ដោយឥតគិតថ្លៃ)» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Nếu bạn đang trên gói Cloudflare Pro hoặc Business, hãy đi đến next section. Bạn sẽ cấu hình chế độ Super Bot Fight Mode sau.
If you are on a Cloudflare Pro or Business plan, go to the next section. You will configure Super Bot Fight Mode later.
ប្រសិនបើអ្នកមានគម្រោង Cloudflare Pro ឬ Business, សូមចូលទៅក្នុងគម្រោង next section ។ អ្នកនឹងបង្កើតកម្មវិធី Super Bot Fight Mode បន្ទាប់មក។
Bot Fight Mode thách thức các yêu cầu phù hợp với các mô hình bot đã biết. Nó áp dụng cho toàn bộ tên miền của bạn và có sẵn trên tất cả các gói mà không cần thêm chi phí.
Bot Fight Mode challenges requests that match known bot patterns. It applies to your entire domain and is available on all plans at no additional cost.
ការធ្វើតេស្ត Bot Fight Mode មានតម្រូវការដែលសមរម្យជាមួយគំរូ bot ដែលបានដឹង។ វាត្រូវបានអនុវត្តសម្រាប់ទីផ្សារទាំងអស់របស់អ្នកនិងអាចរកបាននៅលើគម្រោងទាំងអស់ដោយគ្មានតម្លៃបន្ថែមទៀត។
  1. Trong bảng điều khiển Cloudflare, đi đến trang Security Settings.
  1. In the Cloudflare dashboard, go to the Security Settings page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Security Settings ។
  1. Lọc theo Bot traffic
  2. Đi đến Bot fight mode
  3. Nhấn Bot fight mode vào.
  1. Filter by Bot traffic.
  2. Go to Bot fight mode.
  3. Turn Bot fight mode on.
  1. កញ្ចប់ដោយ Bot traffic
  2. សូមចូលទៅ Bot fight mode ។
  3. ចុច Bot fight mode នៅលើ។
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và tên miền của bạn.
  2. Đi đến Security \> Bots.
  3. Đối với Bot Fight Mode, hãy chọn On.
  1. Log in to the Cloudflare dashboard ↗, and select your account and domain.
  2. Go to Security \> Bots.
  3. For Bot Fight Mode, select On.
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីរបស់អ្នកនិងតំបន់បណ្ដាញរបស់អ្នក។
  2. ចុចទៅ Security \> Bots ។
  3. សម្រាប់ Bot Fight Mode ចុច On ។
Bot Fight Mode có thể can thiệp vào lưu lượng truy cập tự động hợp pháp đến API của bạn, chẳng hạn như các công cụ giám sát, đường ống CI / CD hoặc tích hợp đối tác. Nếu bạn có khách hàng bot hợp pháp, hãy tạo một quy tắc ngoại lệ trước khi bật Chế độ Chiến đấu Bot (xem phần tiếp theo).
Bot Fight Mode may interfere with legitimate automated traffic to your API, such as monitoring tools, CI/CD pipelines, or partner integrations. If you have legitimate bot clients, create an exception rule before turning on Bot Fight Mode (see the next section).
Bot Fight Mode អាចផ្លាស់ប្តូរការដឹកជញ្ជូនដោយស្វ័យប្រវត្តិដែលមានសិទ្ធិភាពទៅ API របស់អ្នកដូចជាឧបករណ៍ត្រួតពិនិត្យបំពង់ CI / CD ឬការបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តាល។ ប្រសិនបើអ្នកមានកុំព្យូទ័រ bot ដែលមានលក្ខណៈសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្បត្តិសម្ប
Để biết thêm thông tin về hành vi và hạn chế của Bot Fight Mode, hãy tham khảo Bot Fight Mode.
For more information on Bot Fight Mode behavior and limitations, refer to Bot Fight Mode.
សម្រាប់ព័ត៌មានបន្ថែមអំពីកម្មវិធី Bot Fight Mode និងការកាត់បន្ថយ, សូមមើល Bot Fight Mode ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Tạo các quy tắc ngoại lệ cho các khách hàng bot hợp pháp (Pro, Business) Create exception rules for legitimate bot clients (Pro, Business) ការបង្កើតច្បាប់ការប៉ះពាល់សម្រាប់អតិថិជន bot ដែលមានជំនាញវិជ្ជាជីវៈ (Pro, Business)

Phần «Tạo exception rules for legitimate bot clients (Pro, Business)» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Create exception rules for legitimate bot clients (Pro, Business)" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការបង្កើតច្បាប់ការប៉ះពាល់សម្រាប់អតិថិជន bot ដែលមានជំនាញវិជ្ជាជីវៈ (Pro, Business)» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Nếu API của bạn nhận được lưu lượng truy cập từ các máy khách tự động được biết đến (dịch vụ giám sát, API đối tác, hệ thống CI/CD), hãy tạo custom security rule with the Skip action để loại trừ chúng khỏi bảo vệ bot. Tạo quy tắc ngoại lệ trước khi bật chế độ Super Bot Fight trong phần tiếp theo.
If your API receives traffic from known automated clients (monitoring services, partner APIs, CI/CD systems), create a custom security rule with the Skip action to exclude them from bot protections. Create the exception rule before turning on Super Bot Fight Mode in the next section.
ប្រសិនបើ API របស់អ្នកទទួលបានការដឹកជញ្ជូនពីអតិថិជនដោយស្វ័យប្រវត្តិដែលបានដឹង (សេវាកម្មការត្រួតពិនិត្យ, API របស់អតិថិជន, ប្រព័ន្ធ CI / CD) សូមបង្កើត custom security rule with the Skip action ដើម្បីបាត់បន្ថយពួកគេពីការពារ bot ។ សូមបង្កើតច្បាប់ពិសេសមុនពេលផ្លាស់ប្តូរកម្មវិធី Super Bot Fight Mode នៅក្នុងផ្នែកបន្ទាប់។
  1. Trong bảng điều khiển Cloudflare, đi đến Security \> Security rules.
  1. In the Cloudflare dashboard, go to Security \> Security rules.
  1. នៅលើប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅ Security \> Security rules ។
  1. Chọn Create rule \> Custom rules.
  2. Xác định tên quy tắc Ví dụ như Skip bot protections for monitoring service.
  3. Tạo một biểu thức phù hợp với lưu lượng bot đã biết của bạn. Ví dụ, để bỏ qua bảo vệ cho các yêu cầu từ một phạm vi IP cụ thể với một User-Agent đã biết:
  1. Select Create rule \> Custom rules.
  2. Define the rule name. For example, Skip bot protections for monitoring service.
  3. Build an expression that matches your known bot traffic. For example, to skip protections for requests from a specific IP range with a known User-Agent:
  1. សូមចុច Create rule > Custom rules ។
  2. សូមបញ្ជាក់ឈ្មោះច្បាប់។ ដូចជា Skip bot protections for monitoring service ។
  3. បានបង្កើតការសរសេរដែលសមរម្យជាមួយនឹងការដឹកជញ្ជូន bot ដែលអ្នកដឹង។ ឧទាហរណ៍ដើម្បីបាត់បង់ការពារសម្រាប់សំណួរពីតម្រូវការ IP ដែលមានអេក្រង់អ្នកប្រើដែលបានដឹង:
text
(ip.src in {203.0.113.0/24} and http.user_agent contains "MonitoringBot")
Thay thế phạm vi IP và User-Agent bằng các giá trị phù hợp với khách hàng bot hợp pháp của bạn.
Replace the IP range and User-Agent with values that match your legitimate bot clients.
ការផ្លាស់ប្តូរទំហំ IP និង User-Agent ដោយមានតម្លៃដែលបំពេញតាមអតិថិជន bot របស់អ្នក។
  1. Đối với Choose action, chọn Skip và sau đó chọn All Super Bot Fight Mode rules.
  2. Chọn Deploy
  1. For Choose action, select Skip and then select All Super Bot Fight Mode rules.
  2. Select Deploy.
  1. សម្រាប់ Choose action សូមជ្រើស Skip បន្ទាប់មកជ្រើស All Super Bot Fight Mode rules ។
  2. សូមជ្រើស Deploy ។
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và tên miền của bạn.
  2. Đi đến Security \> WAF \> Custom rules
  3. Chọn Create rule
  4. Xác định tên quy tắc Ví dụ như Skip bot protections for monitoring service.
  5. Tạo một biểu thức phù hợp với lưu lượng bot đã biết của bạn. Ví dụ, để bỏ qua bảo vệ cho các yêu cầu từ một phạm vi IP cụ thể với một User-Agent đã biết:
  1. Log in to the Cloudflare dashboard ↗, and select your account and domain.
  2. Go to Security \> WAF \> Custom rules
  3. Select Create rule.
  4. Define the rule name. For example, Skip bot protections for monitoring service.
  5. Build an expression that matches your known bot traffic. For example, to skip protections for requests from a specific IP range with a known User-Agent:
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីរបស់អ្នកនិងតំបន់បណ្ដាញរបស់អ្នក។
  2. ចុចទៅ Security & > WAF > Custom rules
  3. សូមជ្រើស Create rule ។
  4. សូមបញ្ជាក់ឈ្មោះច្បាប់។ ដូចជា Skip bot protections for monitoring service ។
  5. បានបង្កើតការសរសេរដែលសមរម្យជាមួយនឹងការដឹកជញ្ជូន bot ដែលអ្នកដឹង។ ឧទាហរណ៍ដើម្បីបាត់បង់ការពារសម្រាប់សំណួរពីតម្រូវការ IP ដែលមានអេក្រង់អ្នកប្រើដែលបានដឹង:
text
(ip.src in {203.0.113.0/24} and http.user_agent contains "MonitoringBot")
Thay thế phạm vi IP và User-Agent bằng các giá trị phù hợp với khách hàng bot hợp pháp của bạn.
Replace the IP range and User-Agent with values that match your legitimate bot clients.
ការផ្លាស់ប្តូរទំហំ IP និង User-Agent ដោយមានតម្លៃដែលបំពេញតាមអតិថិជន bot របស់អ្នក។
  1. Đối với Choose action, chọn Skip và sau đó chọn All Super Bot Fight Mode rules.
  2. Chọn Deploy
  1. For Choose action, select Skip and then select All Super Bot Fight Mode rules.
  2. Select Deploy.
  1. សម្រាប់ Choose action សូមជ្រើស Skip បន្ទាប់មកជ្រើស All Super Bot Fight Mode rules ។
  2. សូមជ្រើស Deploy ។
Đặt các quy tắc ngoại lệ trên (trước) các quy tắc thực thi trong danh sách quy tắc của bạn. Cloudflare đánh giá các quy tắc tùy chỉnh theo thứ tự, và quy tắc khớp đầu tiên với action chấm dứt đánh giá. Để biết thêm thông tin, hãy tham khảo Rule execution order.
Place exception rules above (before) enforcement rules in your rule list. Cloudflare evaluates custom rules in order, and the first matching rule with a terminating action stops evaluation. For more information, refer to Rule execution order.
សូមផ្លាស់ប្តូរលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌលក្ខខណ្ឌ Cloudflare ពិនិត្យឡើងវិញស្ដង់ដារតាមបំណងដោយផ្ទាល់ខ្លួននិងស្ដង់ដារដំបូងដែលសម្តែងជាមួយនឹងការបញ្ចប់ action បានកាត់បន្ថយការវិភាគ។ សម្រាប់ព័ត៌មានបន្ថែមសូមមើល Rule execution order ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Thiết lập chế độ Super Bot Fight Mode (Pro, Business) Configure Super Bot Fight Mode (Pro, Business) ប្រព័ន្ធ ប្រតិបត្តិការ Super Bot Fight Mode (Pro, Business)

Phần «Cấu hình Super Bot Fight Mode (Pro, Business)» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Configure Super Bot Fight Mode (Pro, Business)" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ប្រព័ន្ធ ប្រតិបត្តិការ Super Bot Fight Mode (Pro, Business)» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Super Bot Fight Mode cung cấp các điều khiển chi tiết áp dụng trên toàn miền của bạn, cho phép bạn áp dụng các hành động khác nhau cho các loại bot khác nhau.
Super Bot Fight Mode provides granular controls that apply across your domain, allowing you to apply different actions to different bot types.
Super Bot Fight Mode អនុញ្ញាតឱ្យអ្នកអនុវត្តដំណើរការផ្សេងគ្នានៃការគ្រប់គ្រងដែលត្រូវបានអនុវត្តនៅទូទាំងតំបន់របស់អ្នកដែលអនុញ្ញាតឱ្យអ្នកអនុវត្តដំណើរការផ្សេងគ្នានៃការគ្រប់គ្រងផ្សេងគ្នានៃ bot ។
Nếu bạn đang nâng cấp từ Chế độ Chiến đấu Bot lên Chế độ Chiến đấu Super Bot, bạn phải vô hiệu hóa Chế độ Chiến đấu Bot trong cài đặt Bot của bạn.
If you are upgrading from Bot Fight Mode to Super Bot Fight Mode, you must disable Bot Fight Mode in your Bot settings.
ប្រសិនបើអ្នកកំពុងធ្វើការអភិវឌ្ឍន៍ពី Bot Fight Mode ទៅ Super Bot Fight Mode, អ្នកត្រូវការកាត់បន្ថយ Bot Fight Mode នៅក្នុងកំណត់ Bot របស់អ្នក។
  • Bảng điều khiển cũ: Security \> Bots, và chọn Configure Bot Fight Mode.
  • Bảng điều khiển mới: Security \> Settings. Chọn Bot traffic và tắt Bot fight mode.
  • Old dashboard: Security \> Bots, and select Configure Bot Fight Mode.
  • New dashboard: Security \> Settings. Filter by Bot traffic and turn Bot fight mode off.
  • ប្រព័ន្ធប្រតិបត្តិការទូទៅ: Security & > Bots, និងចុច Configure Bot Fight Mode ។
  • ស្លាកថ្មី: Security \> Settings ។ ចុច Bot traffic ហើយចុច Bot fight mode ។
Để cài đặt Super Bot Fight Mode:
To configure Super Bot Fight Mode:
ដើម្បីបង្កើតកម្មវិធី Super Bot Fight Mode:
  1. Trong bảng điều khiển Cloudflare, đi đến trang Security Settings.
  1. In the Cloudflare dashboard, go to the Security Settings page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Security Settings ។
  1. Lọc theo Bot traffic
  2. Đi đến Super Bot fight mode
  3. Nhấn Super Bot fight mode vào.
  4. Chọn cách miền của bạn nên đáp ứng với các loại lưu lượng truy cập khác nhau bằng cách chọn biểu tượng chỉnh sửa liên quan:
  1. Filter by Bot traffic.
  2. Go to Super Bot fight mode.
  3. Turn Super Bot fight mode on.
  4. Choose how your domain should respond to various types of traffic by selecting the associated edit icon:
  1. កញ្ចប់ដោយ Bot traffic
  2. សូមចូលទៅ Super Bot fight mode ។
  3. ចុច Super Bot fight mode នៅលើ។
  4. ជ្រើសរើសរបៀបដែលអាសយដ្ឋានរបស់អ្នកគួរឱ្យឆ្លើយតបទៅនឹងប្រភេទផ្សេងគ្នានៃការដឹកជញ្ជូនដោយជ្រើសរើសអេឡិចត្រូនិ edit ដែលរួមបញ្ចូលគ្នា:
Để biết thêm chi tiết về các bot đã được xác minh, hãy tham khảo Verified Bots. Để biết thêm chi tiết về các loại tệp được hỗ trợ, hãy tham khảo Static resource protection. Để biết thêm chi tiết về tiêm mã vô hình, hãy xem JavaScript detections. Để biết thêm chi tiết về tối ưu hóa WordPress, hãy tham khảo Super Bot Fight Mode for WordPress.
For more details on verified bots, refer to Verified Bots. For more details on supported file types, refer to Static resource protection. For more details on invisible code injection, refer to JavaScript detections. For more details on WordPress optimization, refer to Super Bot Fight Mode for WordPress.
សម្រាប់ព័ត៌មានបន្ថែមអំពី bots ដែលបានត្រួតពិនិត្យមើល Verified Bots ។ សម្រាប់ព័ត៌មានបន្ថែមអំពីប្រភេទឯកសារដែលគាំទ្រមើល Static resource protection ។ សម្រាប់ព័ត៌មានបន្ថែមអំពីការដំឡើងលេខកូដគិតថ្លៃសូមមើល JavaScript detections ។ សម្រាប់ព័ត៌មានបន្ថែមអំពីការធ្វើឱ្យប្រសើរឡើង WordPress សូមមើល Super Bot Fight Mode for WordPress ។
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và tên miền của bạn.
  2. Đi đến Security \> Bots.
  3. Chọn Configure Super Bot Fight Mode
  4. Chọn cách miền của bạn nên đáp ứng với các loại lưu lượng truy cập khác nhau:
  1. Log in to the Cloudflare dashboard ↗, and select your account and domain.
  2. Go to Security \> Bots.
  3. Select Configure Super Bot Fight Mode.
  4. Choose how your domain should respond to various types of traffic:
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីរបស់អ្នកនិងតំបន់បណ្ដាញរបស់អ្នក។
  2. ចុចទៅ Security \> Bots ។
  3. សូមជ្រើស Configure Super Bot Fight Mode ។
  4. ជ្រើសរើសរបៀបដែលអាសយដ្ឋានរបស់អ្នកគួរឱ្យឆ្លើយតបទៅនឹងប្រភេទផ្សេងគ្នានៃការដឹកជញ្ជូន:
Để biết thêm chi tiết về các bot đã được xác minh, hãy tham khảo Verified Bots. Để biết thêm chi tiết về các loại tệp được hỗ trợ, hãy tham khảo Static resource protection. Để biết thêm chi tiết về tiêm mã vô hình, hãy xem JavaScript detections. Để biết thêm chi tiết về tối ưu hóa WordPress, hãy tham khảo Super Bot Fight Mode for WordPress.
For more details on verified bots, refer to Verified Bots. For more details on supported file types, refer to Static resource protection. For more details on invisible code injection, refer to JavaScript detections. For more details on WordPress optimization, refer to Super Bot Fight Mode for WordPress.
សម្រាប់ព័ត៌មានបន្ថែមអំពី bots ដែលបានត្រួតពិនិត្យមើល Verified Bots ។ សម្រាប់ព័ត៌មានបន្ថែមអំពីប្រភេទឯកសារដែលគាំទ្រមើល Static resource protection ។ សម្រាប់ព័ត៌មានបន្ថែមអំពីការដំឡើងលេខកូដគិតថ្លៃសូមមើល JavaScript detections ។ សម្រាប់ព័ត៌មានបន្ថែមអំពីការធ្វើឱ្យប្រសើរឡើង WordPress សូមមើល Super Bot Fight Mode for WordPress ។
Với chế độ Super Bot Fight Mode, bạn có thể cấu hình các hành động khác nhau cho các loại bot khác nhau:
With Super Bot Fight Mode, you can configure different actions for different bot types:
ជាមួយនឹង Super Bot Fight Mode អ្នកអាចកំណត់ដំណើរការផ្សេងគ្នាសម្រាប់ប្រភេទ bot ផ្សេងៗ។
  • Chặn hoặc cho phép các bot đã được xác minh
  • Thiết lập action riêng biệt (cho phép, chặn hoặc thách thức) cho Definitely automated traffic (bot score của 1)
  • Trên các kế hoạch kinh doanh và trên: Thiết lập một action riêng biệt cho Likely automated traffic (tỷ lệ bot là 2-29)
  • Block or allow verified bots
  • Configure a separate action (allow, block, or challenge) for Definitely automated traffic (bot score of 1)
  • On Business plans and above: Configure a separate action for Likely automated traffic (bot score of 2-29)
  • ប្លុកឬអនុញ្ញាតឱ្យកុំព្យូទ័រសាកល្បង
  • កំណត់ action សម្រាប់ Definitely automated traffic (bot score នៃ 1) ។
  • នៅលើគម្រោងអាជីវកម្មនិងច្រើនជាងនេះ: បានកំណត់ action សម្រាប់ Likely automated traffic (កម្រិត bot នៃ 2-29)
Chế độ Super Bot Fight Mode áp dụng trên toàn miền và không hỗ trợ các quy tắc cụ thể về con đường. Nếu bạn cần áp dụng ngưỡng bot khác nhau cho các con đường API khác nhau, bạn cần đăng ký Bot Management (Enterprise).
Super Bot Fight Mode applies domain-wide and does not support path-specific rules. If you need to apply different bot thresholds to different API paths, you need a Bot Management subscription (Enterprise).
Super Bot Fight Mode ត្រូវបានអនុវត្តនៅទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទាំងទូទៅ។ ប្រសិនបើអ្នកត្រូវការអនុវត្តទំហំ bot ផ្សេងគ្នាទៅនឹងដំណើរការ API ផ្សេងៗអ្នកត្រូវការគណនី Bot Management (Enterprise) ។
Kết quả Bot trong Custom Rules (Enterprise)
Bot score in custom rules (Enterprise)
លទ្ធផលនៃ Bot in custom rules (Enterprise)
Với đăng ký Bot Management, bạn có thể viết các quy tắc tùy chỉnh bằng cách sử dụng cf.bot_management.score để thiết lập ngưỡng cụ thể. Ví dụ, chặn các yêu cầu có điểm số bot dưới 30 trên đường dẫn /api/auth trong khi cho phép tất cả điểm số trên các đường dẫn API khác. Để biết thêm thông tin, hãy tham khảo Bot Management.
With a Bot Management subscription, you can write custom rules using cf.bot_management.score to set path-specific thresholds. For example, block requests with a bot score below 30 on /api/auth paths while allowing all scores on other API paths. For more information, refer to Bot Management.
ជាមួយនឹងការទូទាត់ Bot Management អ្នកអាចសរសេរច្បាប់ផ្ទាល់ខ្លួនដោយប្រើ cf.bot_management.score ដើម្បីកំណត់ទំហំទូលំទូលំទូលាយ។ លក្ខណៈពិសេសនេះគឺជាការកាត់បន្ថយទម្រង់ដែលមានកំណត់បន្ថយជាង 30 នៅលើ /api/auth និងអនុញ្ញាតឱ្យមានកំណត់បន្ថយទម្រង់ទាំងអស់នៅលើ API ។ សម្រាប់ព័ត៌មានបន្ថែមសូមមើល Bot Management ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Xác định thông tin bị rò rỉ trên login endpoints Detect leaked credentials on login endpoints ការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយលើ login endpoints

Phần «Detect leaked credentials on login endpoints» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Detect leaked credentials on login endpoints" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយលើ login endpoints» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Application Security leaked credentials detection kiểm tra các yêu cầu đến cho tên người dùng và mật khẩu kết hợp xuất hiện trong vi phạm dữ liệu được biết đến. Sử dụng phát hiện này để giới hạn tỷ lệ hoặc thách thức các yêu cầu có chứa thông tin xác thực bị xâm phạm trên điểm cuối xác thực của bạn.
Application Security leaked credentials detection checks incoming requests for username and password combinations that appeared in known data breaches. Use this detection to rate limit or challenge requests containing compromised credentials on your authentication endpoints.
ការសុវត្ថិភាពកម្មវិធី leaked credentials detection អនុញ្ញាតឱ្យអ្នកត្រួតពិនិត្យការទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទាត់ទូទូទាត់ទូទាត់ទូទាត់ទូទូទាត់ទូទូទាត់ទូទូទាត់ទូទូទាត់ទូទូទាត់ទូទូទាត់ទូទូទាត់ទូទូទាត់ទូទូទូទាត់ទូទូទូទាត់ទូទ ប្រើការរកឃើញនេះដើម្បីកាត់បន្ថយតម្រូវការឬការជួញដូរតម្រូវការដែលមានវិញ្ញាបនប័ត្រដែលបានកាត់បន្ថយនៅក្នុងតម្រូវការអនុម័តរបស់អ្នក។
Access đến trường cf.waf.credential<em>check.username</em>and<em>password</em>leaked (Người dùng và mật khẩu bị rò rỉ) yêu cầu gói Pro hoặc cao hơn. Nếu bạn đang trên gói miễn phí, hãy sử dụng trường cf.waf.credential<em>check.password</em>leaked (Mật khẩu bị rò rỉ) thay vào đó, cho biết mật khẩu được phát hiện trong yêu cầu đã bị rò rỉ trước đó.
Access to the cf.waf.credential<em>check.username</em>and<em>password</em>leaked field (User and Password Leaked) requires a Pro plan or above. If you are on a Free plan, use the cf.waf.credential<em>check.password</em>leaked field (Password Leaked) instead, which indicates whether the password detected in the request was previously leaked.
Access ទៅកន្លែង cf.waf.credential<em>check.username</em>and<em>password</em>leaked (អ្នកប្រើប្រាស់និង Password Leaked) តម្រូវឱ្យមានគណនី Pro ឬខ្ពស់ជាងនេះ។ ប្រសិនបើអ្នកមានគម្រោងដោយឥតគិតថ្លៃអ្នកអាចប្រើឧបករណ៍ cf.waf.credential<em>check.password</em>leaked (Password Leaked) ដូចជាឧបករណ៍នេះអាចបង្ហាញថាការបញ្ចូលគោលដៅដែលបានរកឃើញនៅក្នុងតម្រូវការនេះបានបញ្ចូលគ្នានៅពេលមុន។
Quy tắc rate limiting sau đây giới hạn các yêu cầu có chứa kết hợp tên người dùng và mật khẩu bị rò rỉ trước đó đến 5 mỗi phút cho mỗi IP:
The following rate limiting rule limits requests that contain a previously leaked username and password combination to 5 per minute per IP:
គោលដៅ rate limiting នេះដូចខាងក្រោមបានកាត់បន្ថយសំណួរដែលមានការរួមបញ្ចូលឈ្មោះអ្នកប្រើប្រាស់និងការរួមបញ្ចូលគោលដៅដែលបានលក់មុនពេលនេះទៅ 5 ក្នុងមួយ នាទីសម្រាប់ IP:
| Setting | Value | | ------------------------ | -------------------------------------------------------- | | Expression | cf.waf.credential\check.username\and\password\leaked | | Counting characteristics | IP | | Requests per period | 5 requests / 1 minute | | Action | Block |
| Setting | Value | | ------------------------ | -------------------------------------------------------- | | Expression | cf.waf.credential\check.username\and\password\leaked | | Counting characteristics | IP | | Requests per period | 5 requests / 1 minute | | Action | Block |
| Setting | Value | | ------------------------ | -------------------------------------------------------- | | Expression | cf.waf.credential\check.username\and\password\leaked | | Counting characteristics | IP | | Requests per period | 5 requests / 1 minute | | Action | Block |
Để biết biểu thức đầy đủ bao gồm ID phát hiện lấy tài khoản (ATO), hãy tham khảo Example mitigation rules.
For the full expression including account takeover (ATO) detection IDs, refer to Example mitigation rules.
សម្រាប់ការបង្ហាញពេញលេញរួមបញ្ចូលទាំង ID ការរកឃើញការទទួលយកគណនី (ATO) សូមមើល Example mitigation rules ។
Sequence Analytics và sequence mitigation custom rules (Enterprise)
Sequence Analytics and sequence mitigation custom rules (Enterprise)
វិញ្ញាបនប័ត្រគ្រប់គ្រង Sequence Analytics និង Sequence Mitigation (Enterprise)
API Shield theo dõi thứ tự của các yêu cầu điểm cuối API theo thời gian, nhóm các hành trình người dùng quan trọng (các chuỗi) trên API của bạn. Các chuỗi có điểm ưu tiên cao chỉ ra các yêu cầu có khả năng xảy ra cùng nhau theo thứ tự. Các chuỗi bất thường có thể chỉ ra lạm dụng tự động, chẳng hạn như một bot gọi /auth, sau đó /account, sau đó /transfer trong chuỗi nhanh. Để biết thêm thông tin, hãy tham khảo Sequence Analytics.
API Shield tracks the order of API endpoint requests over time, grouping important user journeys (sequences) across your API. Sequences with high precedence scores indicate requests that are likely to occur together in order. Anomalous sequences may indicate automated abuse, such as a bot that calls /auth, then /account, then /transfer in rapid succession. For more information, refer to Sequence Analytics.
API Shield បានរក្សាទុកទម្រង់បញ្ចប់ API នៅពេលវេលា, ការបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តុះបណ្តាល API របស់អ្នក។ កម្រិតខ្ពស់ដែលមានកម្រិតខ្ពស់បង្ហាញពីសំណួរដែលមានប្រសិទ្ធិភាពដើម្បីកើតឡើងជាមួយគ្នាក្នុងដំណឹង។ កម្រិតខុសគ្នានេះអាចបង្ហាញពីការប្រើប្រាស់ដោយស្វ័យប្រវត្តិដូចជា bot ដែលសរសេរ /auth, បន្ទាប់ /account, បន្ទាប់ /transfer ក្នុងកម្រិតខ្ពស់។ សម្រាប់ព័ត៌មានបន្ថែមសូមមើល Sequence Analytics ។
Người dùng doanh nghiệp có đăng ký phát hiện gian lận cũng có thể tạo sequence mitigation custom rules để giảm bớt các chuỗi cuộc gọi không hợp lệ của API.
Enterprise users with a Fraud Detection subscription can also create sequence mitigation custom rules to mitigate invalid sequences of API calls.
អ្នកប្រើប្រាស់អាជីវកម្មដែលមានការទូទាត់ការរកឃើញការលោហៈអាចបង្កើត sequence mitigation custom rules ដើម្បីកាត់បន្ថយកម្រិតខុសគ្នានៃការទូរស័ព្ទ API ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Theo dõi lưu lượng truy cập của bạn API Monitor your API traffic ការត្រួតពិនិត្យការដឹកជញ្ជូនរបស់អ្នក API

Phần «Monitor your API traffic» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Monitor your API traffic" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការត្រួតពិនិត្យការដឹកជញ្ជូនរបស់អ្នក API» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Sau khi triển khai các quy tắc bảo mật của bạn, hãy xem lại kết quả để xác định dương tính giả và điều chỉnh ngưỡng của bạn. Tích cực giả (khách hàng hợp pháp bị chặn) và tiêu cực giả (lạm dụng vượt qua) đều đòi hỏi phải điều chỉnh.
After deploying your security rules, review the results to identify false positives and tune your thresholds. False positives (legitimate clients being blocked) and false negatives (abuse getting through) both require adjustments.
បន្ទាប់ពីការដំឡើងគោលដៅសុវត្ថិភាពរបស់អ្នក, ពិនិត្យឡើងវិញផលិតផលដើម្បីរកឃើញអត្ថប្រយោជន៍លម្អិតនិងស្ដង់ដាររបស់អ្នក។ លក្ខណៈពិសេសរបស់អ្នកគឺជាការពិតប្រាកដ។ លក្ខណៈពិសេសរបស់អ្នកគឺជាការពិតប្រាកដ។ លក្ខណៈពិសេសនៃការពិតប្រាកដគឺជាការពិតប្រាកដ។ លក្ខណៈពិសេសនៃការពិតប្រាកដគឺជាការពិតប្រាកដ។

Đánh giá sự kiện bảo mật cho đường dẫn API Review Security Events for API paths ការពិនិត្យឡើងវិញឧបករណ៍សុវត្ថិភាពសម្រាប់ផ្លូវ API

Phần «Review Security Events for API paths» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Review Security Events for API paths" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការពិនិត្យឡើងវិញឧបករណ៍សុវត្ថិភាពសម្រាប់ផ្លូវ API» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Security Events hiển thị mọi yêu cầu mà quy tắc của bạn phù hợp, bao gồm action được thực hiện và quy tắc kích hoạt nó. Lọc theo tiền tố con đường API của bạn để xem Cloudflare đang chặn điều gì và tại sao.
Security Events shows every request that your rules matched, including the action taken and the rule that triggered it. Filter by your API path prefix to see what Cloudflare is blocking and why.
Security Events បង្ហាញពីសំណួរទាំងអស់ដែលគោលដៅរបស់អ្នកបានបំពេញ, រួមទាំង action ដែលបានទទួលបាននិងគោលដៅដែលបានបង្កើតវា។ តម្រងដោយគោលបំណងដំណើរ API របស់អ្នកដើម្បីមើលអ្វីដែល Cloudflare គឺជាការកាត់បន្ថយនិងហេតុអ្វី។
  1. Trong bảng điều khiển Cloudflare, đi đến trang Analytics.
  1. In the Cloudflare dashboard, go to the Analytics page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Analytics ។
  1. Chọn tab Events
  2. Thêm một bộ lọc cho URI Path bắt đầu với /api/.
  3. Xem lại các sự kiện Tìm kiếm các khách hàng hợp pháp đang bị chặn (phản ứng dương tính giả). Các chỉ số tích cực giả:
  1. Select the Events tab.
  2. Add a filter for URI Path starts with /api/.
  3. Review the events. Look for legitimate clients that are being blocked (false positives). Common indicators of false positives:
  1. សូមចុច Events ។
  2. បន្ថែមឯកសារសម្រាប់ URI Path ដែលចាប់ផ្តើមជាមួយ /api/ ។
  3. យោបល់អំពីព្រឹត្តិការណ៍ សូមស្វែងរកអតិថិជនពិតប្រាកដដែលត្រូវបានកាត់បន្ថយ (អត្ថប្រយោជន៍ពហុ). វិញ្ញាបនប័ត្រដែលមានលក្ខណៈពិសេសនៃការគួរឱ្យឆ្លើយតប:
Yêu cầu từ đối tác đã biết IP địa chỉ Yêu cầu với khóa API hợp lệ hoặc tiêu đề ủy quyền * Yêu cầu từ các dịch vụ giám sát với chuỗi User-Agent đã biết
Requests from known partner IP addresses Requests with valid API keys or authorization headers * Requests from monitoring services with known User-Agent strings
Requests from known partner IP addresses Requests with valid API keys or authorization headers * Requests from monitoring services with known User-Agent strings
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và khu vực của bạn.
  2. Đi đến Security \> Events.
  3. Thêm một bộ lọc cho URI Path bắt đầu với /api/.
  4. Xem lại các sự kiện Tìm kiếm các khách hàng hợp pháp đang bị chặn (phản ứng dương tính giả). Các chỉ số tích cực giả:
  1. Log in to the Cloudflare dashboard ↗, and select your account and zone.
  2. Go to Security \> Events.
  3. Add a filter for URI Path starts with /api/.
  4. Review the events. Look for legitimate clients that are being blocked (false positives). Common indicators of false positives:
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីនិងតំបន់របស់អ្នក។
  2. ចុចទៅ Security \> Events ។
  3. បន្ថែមឯកសារសម្រាប់ URI Path ដែលចាប់ផ្តើមជាមួយ /api/ ។
  4. យោបល់អំពីព្រឹត្តិការណ៍ សូមស្វែងរកអតិថិជនពិតប្រាកដដែលត្រូវបានកាត់បន្ថយ (អត្ថប្រយោជន៍ពហុ). វិញ្ញាបនប័ត្រដែលមានលក្ខណៈពិសេសនៃការគួរឱ្យឆ្លើយតប:
Yêu cầu từ đối tác đã biết IP địa chỉ Yêu cầu với khóa API hợp lệ hoặc tiêu đề ủy quyền * Yêu cầu từ các dịch vụ giám sát với chuỗi User-Agent đã biết
Requests from known partner IP addresses Requests with valid API keys or authorization headers * Requests from monitoring services with known User-Agent strings
Requests from known partner IP addresses Requests with valid API keys or authorization headers * Requests from monitoring services with known User-Agent strings
Nếu bạn tìm thấy tích cực giả, hãy cập nhật các quy tắc tùy chỉnh của bạn để loại trừ lưu lượng truy cập bị ảnh hưởng. Hãy tham khảo exception rule procedure trong một phần trước.
If you find false positives, update your custom rules to exclude the affected traffic. Refer to the exception rule procedure in an earlier section.
ប្រសិនបើអ្នករកឃើញអត្ថប្រយោជន៍ពហុប្រសិនបើអ្នកបានធ្វើឱ្យប្រសិនបើអ្នកមានអត្ថប្រយោជន៍ពហុប្រសិនបើអ្នកមានអត្ថប្រយោជន៍ពហុប្រសិនបើអ្នកមានអត្ថប្រយោជន៍ពហុប្រសិនបើអ្នកមានអត្ថប្រយោជន៍ពហុ។ សូមផ្លាស់ប្តូរទៅ exception rule procedure នៅក្នុងផ្នែកមុន។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Tune rate limiting ngưỡng Tune rate limiting thresholds Tune rate limiting កម្រិតខ្ពស់

Phần «Tune rate limiting thresholds» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Tune rate limiting thresholds" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «Tune rate limiting កម្រិតខ្ពស់» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Rate limiting ngưỡng quá chặt chẽ chặn khách hàng hợp pháp. Các ngưỡng quá rỗng cho phép lạm dụng. Xem lại các sự kiện rate limiting trong Security Events để tìm sự cân bằng phù hợp.
Rate limiting thresholds that are too tight block legitimate clients. Thresholds that are too loose allow abuse. Review rate limiting events in Security Events to find the right balance.
Rate limiting ទំហំទំហំដែលមានទំហំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលាយ។ កម្រិតខ្ពស់ជាងនេះបានអនុញ្ញាតឱ្យការប្រើប្រាស់ខុសគ្នា។ ការធ្វើតេស្ត rate limiting នៅក្នុង Security Events ដើម្បីស្វែងរកការកំណត់ត្រឹមត្រូវ។
  1. Trong bảng điều khiển Cloudflare, đi đến trang Analytics.
  1. In the Cloudflare dashboard, go to the Analytics page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Analytics ។
  1. Chọn tab Events
  2. Bộ lọc theo Action bằng Block và Service bằng Rate limiting.
  3. Kiểm tra xem các yêu cầu bị chặn đến từ khách hàng hợp pháp hay lưu lượng truy cập lạm dụng.
  4. Nếu khách hàng hợp pháp đang bị giới hạn giá, hãy sửa quy tắc rate limiting có liên quan để tăng ngưỡng yêu cầu hoặc kéo dài thời gian cho quy tắc bị ảnh hưởng.
  5. Nếu lưu lượng truy cập lạm dụng đang đi qua, hãy giảm ngưỡng quy tắc hoặc thu hẹp khoảng thời gian.
  1. Select the Events tab.
  2. Filter by Action equals Block and Service equals Rate limiting.
  3. Check whether blocked requests come from legitimate clients or abusive traffic.
  4. If legitimate clients are being rate limited, edit the relevant rate limiting rule to increase the request threshold or widen the time period for the affected rule.
  5. If abusive traffic is getting through, lower the rule threshold or narrow the time period.
  1. សូមចុច Events ។
  2. កុំព្យូទ័រដោយ Action មានគុណភាព Block និង Service មានគុណភាព Rate limiting ។
  3. សូមពិនិត្យមើលប្រសិនបើតម្រូវការដែលត្រូវបានកាត់បន្ថយមកពីអតិថិជនត្រឹមត្រូវឬការដឹកជញ្ជូនដែលមានប្រសិទ្ធិភាព។
  4. ប្រសិនបើអតិថិជនដែលមានលក្ខខណ្ឌត្រឹមត្រូវត្រូវបានកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយ។
  5. ប្រសិនបើការដឹកជញ្ជូនដែលមានលក្ខណៈសម្បត្តិមានប្រសិទ្ធិភាពទាបទាបទំហំច្បាប់ឬកាត់បន្ថយអំឡុងពេលវេលា។
  1. Đăng nhập vào Cloudflare dashboard ↗ và chọn tài khoản và khu vực của bạn.
  2. Đi đến Security \> Events.
  3. Bộ lọc theo Action bằng Block và Service bằng Rate limiting.
  4. Kiểm tra xem các yêu cầu bị chặn đến từ khách hàng hợp pháp hay lưu lượng truy cập lạm dụng.
  5. Nếu khách hàng hợp pháp đang bị giới hạn giá, hãy sửa quy tắc rate limiting có liên quan để tăng ngưỡng yêu cầu hoặc kéo dài thời gian cho quy tắc bị ảnh hưởng.
  6. Nếu lưu lượng truy cập lạm dụng đang đi qua, hãy giảm ngưỡng quy tắc hoặc thu hẹp khoảng thời gian.
  1. Log in to the Cloudflare dashboard ↗, and select your account and zone.
  2. Go to Security \> Events.
  3. Filter by Action equals Block and Service equals Rate limiting.
  4. Check whether blocked requests come from legitimate clients or abusive traffic.
  5. If legitimate clients are being rate limited, edit the relevant rate limiting rule to increase the request threshold or widen the time period for the affected rule.
  6. If abusive traffic is getting through, lower the rule threshold or narrow the time period.
  1. ចុច Cloudflare dashboard ↗ ហើយជ្រើសគណនីនិងតំបន់របស់អ្នក។
  2. ចុចទៅ Security \> Events ។
  3. កុំព្យូទ័រដោយ Action មានគុណភាព Block និង Service មានគុណភាព Rate limiting ។
  4. សូមពិនិត្យមើលប្រសិនបើតម្រូវការដែលត្រូវបានកាត់បន្ថយមកពីអតិថិជនត្រឹមត្រូវឬការដឹកជញ្ជូនដែលមានប្រសិទ្ធិភាព។
  5. ប្រសិនបើអតិថិជនដែលមានលក្ខខណ្ឌត្រឹមត្រូវត្រូវបានកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយការកាត់បន្ថយ។
  6. ប្រសិនបើការដឹកជញ្ជូនដែលមានលក្ខណៈសម្បត្តិមានប្រសិទ្ធិភាពទាបទាបទំហំច្បាប់ឬកាត់បន្ថយអំឡុងពេលវេលា។
Phân tích tỷ lệ phân tích bảo mật đòi hỏi một kế hoạch doanh nghiệp
Security Analytics rate analysis requires an Enterprise plan
ការដោះស្រាយតម្លៃ Security Analytics មានតម្រូវការសម្រាប់គម្រោង Enterprise
Khách hàng doanh nghiệp có thể sử dụng tab Request rate analysis trong Security Analytics để hình dung phân phối tỷ lệ yêu cầu và Log action để quan sát phù hợp với quy tắc mà không cần sử dụng action. Trên các kế hoạch khác, ước tính ngưỡng dựa trên mô hình giao thông dự kiến của bạn. Hãy tham khảo Find an appropriate rate limit để biết toàn bộ phương pháp.
Enterprise customers can use the Request rate analysis tab in Security Analytics to visualize request rate distributions and the Log action to observe rule matches without taking action. On other plans, estimate thresholds based on your expected traffic patterns. Refer to Find an appropriate rate limit for the full methodology.
អ្នកអតិថិជនអាជីវកម្មអាចប្រើទម្រង់ Request rate analysis នៅក្នុង Security Analytics ដើម្បីមើលការផ្លាស់ប្តូរទំហំទម្រង់ទម្រង់និង Log action ដើម្បីពិនិត្យមើលទំហំទំហំទម្រង់ដោយមិនប្រើ action ។ នៅលើដំណោះស្រាយផ្សេងទៀត, ពិនិត្យឡើងវិញទំហំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលាយរបស់អ្នក។ សូមមើល Find an appropriate rate limit សម្រាប់វិធីសាស្រ្តពេញលេញ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Thiết lập thông báo cho spikes sự kiện bảo mật Set up notifications for security event spikes ការបញ្ជាទិន្នន័យនៃការបញ្ជាទិន្នន័យសុវត្ថិភាព

Phần «Thiết lập notifications for security event spikes» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Set up notifications for security event spikes" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការបញ្ជាទិន្នន័យនៃការបញ្ជាទិន្នន័យសុវត្ថិភាព» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Cloudflare Thông báo có thể cảnh báo bạn khi âm lượng sự kiện bảo mật vượt quá ngưỡng, chỉ ra một cuộc tấn công tiềm năng hoặc một quy tắc được cấu hình sai.
Cloudflare Notifications can alert you when security event volume exceeds a threshold, indicating a potential attack or a misconfigured rule.
Cloudflare ដំណោះស្រាយអាចប្រកាសអ្នកនៅពេលដែលទំហំប្រវត្តិសាស្រ្តសុវត្ថិភាពខ្ពស់ជាងទំហំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលំទូលាយ។
  1. Trong bảng điều khiển Cloudflare, đi đến trang Notifications.
  1. In the Cloudflare dashboard, go to the Notifications page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Notifications ។
  1. Chọn Add
  2. Chọn WAF và chọn Security Events Alert.
  3. Xác định tên cho thông báo và phương thức giao hàng (email, webhook hoặc PagerDuty).
  4. Tiếp theo, cấu hình các tên miền mà bạn muốn nhận thông báo. Bạn cũng có thể lọc các sự kiện theo mục tiêu action (ví dụ: Block hoặc Skip).
  5. Chọn Create
  1. Select Add.
  2. Filter by WAF and select Security Events Alert.
  3. Define a name for the notification and the delivery method (email, webhook, or PagerDuty).
  4. Next, configure the domains for which you want to receive notifications. You can also filter events by a targeted action (for example, Block or Skip).
  5. Select Create.
  1. សូមជ្រើស Add ។
  2. ចុច WAF ហើយចុច Security Events Alert ។
  3. បានកំណត់ឈ្មោះសម្រាប់ការបញ្ជាក់និងវិធីបញ្ជូន (email, webhook ឬ PagerDuty) ។
  4. បន្ទាប់មកបញ្ជាក់តំបន់ដែលអ្នកចង់ទទួលបានការប្រកាស។ អ្នកអាចបម្រើប្រវត្តិសាស្រ្តដោយ action (ដូចជា Block ឬ Skip) ។
  5. សូមជ្រើស Create ។
Để biết danh sách đầy đủ các loại thông báo có sẵn, hãy tham khảo Available notifications.
For the full list of available notification types, refer to Available notifications.
សម្រាប់បញ្ជីពេញលេញនៃប្រភេទការបញ្ជាក់ដែលអាចរកបានសូមមើល Available notifications ។
Thông báo sự kiện bảo mật tiên tiến (Enterprise)
Advanced security events notifications (Enterprise)
ការអនុម័តសកម្មភាពសុវត្ថិភាពខ្ពស់ (Enterprise)
Khách hàng doanh nghiệp có access đến loại thông báo Advanced Security Events Alert, bao gồm một bộ lọc bổ sung cho các dịch vụ bảo mật ứng dụng mà cảnh báo nên theo dõi.
Enterprise customers have access to the Advanced Security Events Alert notification type, which includes an additional filter for the app security services the alert should monitor.
អ្នកអតិថិជនអាជីវកម្មមាន access ទៅ Advanced Security Events Alert ប្រភេទការប្រកាសដែលរួមបញ្ចូលទាំងឯកសារបន្ថែមសម្រាប់សេវាកម្មសុវត្ថិភាពកម្មវិធីដែលការប្រកាសគួរតែត្រួតពិនិត្យ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Xem bản đầy đủ trên developers.cloudflare.com (ảnh, tab cấu hình). View the full guide on developers.cloudflare.com (images, config tabs). មើលមគ្គុទ្ទេសក៍ពេញលើ developers.cloudflare.com (រូបភាព, tab កំណត់)។

Tài liệu gốc ↗ Official docs ↗ ឯកសារផ្លូវការ ↗