Answer: For current Codex Cloud, turn off "Enable all public internet access" and "Enable package manager domains" in the environment configuration, and add exact approved hosts under "Additional allowed domains" when public internet access is required. For local Codex, define and select an approved network profile in administrator-managed requirements.toml and activate the administrator-managed proxy so domain restrictions are enforced. Status: Confirmed Entry: tool/codex/permissions-and-security/restrict-network-destinations Revision: 2 Digest: sha256:c6bf5bb50bc7b8b7 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:50:25Z Last changed: 2026-11-20T13:38:35Z (Local port binding: — → allow_local_binding = false) Last verified: 2026-11-20T13:38:35Z Next check: 2026-11-21T13:38:35Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Codex Cloud setting | Enable all public internet access | [1] | 2026-11-20 Codex Cloud allowed hosts | Additional allowed domains | [1] | 2026-11-20 Local profile selection | default_permissions | [1] | 2026-11-20 Local proxy setting | managed_allowed_domains_only = true | [1] | 2026-11-20 Local port binding | allow_local_binding = false | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex security cookbook". https://learn.chatgpt.com/docs/enterprise/security-cookbook.md Role: primary. Accessed: 2026-11-20T13:38:35Z Quote: "turn off **Enable all public internet access** and **Enable package manager domains**" (Supports: Codex Cloud setting) Quote: "add exact approved hosts under **Additional allowed domains**" (Supports: Codex Cloud allowed hosts) Quote: "`default_permissions` selects it, and the allowlist prevents selection of other profiles" (Supports: Local profile selection) Quote: "managed_allowed_domains_only = true" (Supports: Local proxy setting) Quote: "allow_local_binding = false" (Supports: Local port binding) Snapshot SHA-256: bd59a6b1e051756cc5174ba6dad0c24b937039ee3450b8f48a48a4c4563db12e (captured 2026-11-19T13:29:01Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T13:29:03Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:38:35Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:38:35Z Last attempt: 2026-11-20T13:38:35Z Notes and limitations: Extracted automatically from a single official source (section "Restrict network destinations"). Related: https://latestn.com/tool/codex/permissions-and-security/review-findings-across-scans How do I review findings across scans in the Codex Security workbench? https://latestn.com/tool/codex/permissions-and-security/review-sensitive-actions How do I review sensitive Codex actions before they run? https://latestn.com/tool/codex/permissions-and-security/rotate-or-revoke-token How do I rotate or revoke a Codex access token? https://latestn.com/tool/codex/permissions-and-security/prisma-airs-enforcement-modes What enforcement modes and failure behaviors can I choose for Prisma AIRS in Codex? https://latestn.com/tool/codex/permissions-and-security/read-only-triage-requirements What are the requirements to run read-only triage in Codex? https://latestn.com/tool/codex/permissions-and-security/require-approval-for-sensitive-commands How do I require approval for sensitive commands in Codex? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:38:35Z | changed | Local port binding: — → allow_local_binding = false | [1] 2026-11-20T13:38:35Z | changed | Local proxy setting: — → managed_allowed_domains_only = true | [1] 2026-11-20T13:38:35Z | changed | Local profile selection: — → default_permissions | [1] 2026-11-20T13:38:35Z | changed | Local Codex proxy section: experimental_network → — | [1] 2026-11-20T13:38:35Z | changed | Local Codex proxy setting: managed_allowed_domains_only = true → — | [1] 2026-11-20T13:38:35Z | changed | Local Codex profile selector: default_permissions → — | [1] 2026-11-20T13:38:35Z | changed | Local Codex config file: requirements.toml → — | [1] 2026-11-13T03:50:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/permissions-and-security/restrict-network-destinations/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/permissions-and-security/restrict-network-destinations POST: https://latestn.com/dispute/tool/codex/permissions-and-security/restrict-network-destinations with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/permissions-and-security/restrict-network-destinations?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I restrict network destinations for Codex Cloud and local Codex? Revision 2, last verified 2026-11-20T13:38:35Z. https://latestn.com/tool/codex/permissions-and-security/restrict-network-destinations (accessed 2026-11-21T09:58:47Z). @misc{LatestN_tool_codex_permissions_and_security_restrict_network_destinations_r2, title = {How do I restrict network destinations for Codex Cloud and local Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/permissions-and-security/restrict-network-destinations}}, note = {Revision 2; digest sha256:c6bf5bb50bc7b8b7; last verified 2026-11-20T13:38:35Z; accessed 2026-11-21T09:58:47Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/permissions-and-security/restrict-network-destinations