啟用強制執行 App Check
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
瞭解 App Check 對使用者的影響並準備好繼續後,即可啟用 App Check 強制執行。
下列步驟說明如何為 Firebase AI Logic、Data Connect、Realtime Database、Cloud Firestore、Cloud Storage、Authentication、Google Identity for iOS、Maps JavaScript API 和 Places API (新版) 啟用強制執行功能。為產品啟用強制執行後,所有未經驗證的要求都會遭到拒絕。
開啟 Firebase 控制台的 App Check 區段。
展開要啟用強制執行的產品指標檢視畫面。
按一下「強制執行」,然後確認所選項目。
請注意,啟用強制執行後,最多可能需要 15 分鐘才會生效。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-23 (世界標準時間)。
[null,null,["上次更新時間:2025-08-23 (世界標準時間)。"],[],[],null,["# Enable App Check enforcement\n\nWhen you [understand how App Check will affect your users](/docs/app-check/monitor-metrics)\nand you're ready to proceed, you can enable App Check enforcement.\n\nThe following steps describe how to enable enforcement for\nFirebase AI Logic, Data Connect, Realtime Database, Cloud Firestore, Cloud Storage, Authentication, Google Identity for iOS, Maps JavaScript API, and Places API (New). Once you enable enforcement for a product,\nall unverified requests to that product will be rejected.\n\n1. Open the [**App Check**](//console.firebase.google.com/project/_/appcheck)\n section of the Firebase console.\n\n2. Expand the metrics view of the product for which you want to enable\n enforcement.\n\n3. Click **Enforce** and confirm your choice.\n\nNote that it can take up to 15 minutes after you enable enforcement for it to\ntake effect."]]