Cookie Behavior in private browsing 的登錄值 BehaviorPrivateBrowsing電腦HKLM\Software\Policies\Mozilla\Firefox\Cookies

此語言沒有官方文字 (顯示英文原文)

原則 ID
Cookies_BehaviorPrivateBrowsing
適用範圍
電腦設定、使用者設定
支援的作業系統
Firefox 95 or later, Firefox 91.4 ESR or later
來源
Mozilla Firefox Policy Templates (版本 8.3)
類別
Mozilla › Firefox › Cookies

登錄

BehaviorPrivateBrowsing

REG_SZ電腦使用者
啟用時的值
取決於選項值
元素
-
選項
項目儲存的值
Accept all cookiesaccept
Reject third party cookiesreject-foreign
Reject all cookiesreject
Reject third party cookies for sites you haven't visitedlimit-foreign
Reject cookies for known trackersreject-tracker
Partition third-party cookies (Total Cookie Protection)partition-foreign
Reject cookies for known trackers and partition third-party cookies (Deprecated - use Partition third-party cookies)reject-tracker-and-partition-foreign
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox\Cookies]

; 選項 (只使用其中一個)
; Accept all cookies
"BehaviorPrivateBrowsing"="accept"
; Reject third party cookies
"BehaviorPrivateBrowsing"="reject-foreign"
; Reject all cookies
"BehaviorPrivateBrowsing"="reject"
; Reject third party cookies for sites you haven't visited
"BehaviorPrivateBrowsing"="limit-foreign"
; Reject cookies for known trackers
"BehaviorPrivateBrowsing"="reject-tracker"
; Partition third-party cookies (Total Cookie Protection)
"BehaviorPrivateBrowsing"="partition-foreign"
; Reject cookies for known trackers and partition third-party cookies (Deprecated - use Partition third-party cookies)
"BehaviorPrivateBrowsing"="reject-tracker-and-partition-foreign"
CMD
:: 選項 (只使用其中一個)

:: Accept all cookies
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "accept" /f
:: Reject third party cookies
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject-foreign" /f
:: Reject all cookies
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject" /f
:: Reject third party cookies for sites you haven't visited
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "limit-foreign" /f
:: Reject cookies for known trackers
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject-tracker" /f
:: Partition third-party cookies (Total Cookie Protection)
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "partition-foreign" /f
:: Reject cookies for known trackers and partition third-party cookies (Deprecated - use Partition third-party cookies)
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject-tracker-and-partition-foreign" /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Force | Out-Null

# 選項 (只使用其中一個)
# Accept all cookies
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'accept' -Force | Out-Null
# Reject third party cookies
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject-foreign' -Force | Out-Null
# Reject all cookies
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject' -Force | Out-Null
# Reject third party cookies for sites you haven't visited
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'limit-foreign' -Force | Out-Null
# Reject cookies for known trackers
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject-tracker' -Force | Out-Null
# Partition third-party cookies (Total Cookie Protection)
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'partition-foreign' -Force | Out-Null
# Reject cookies for known trackers and partition third-party cookies (Deprecated - use Partition third-party cookies)
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject-tracker-and-partition-foreign' -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox\Cookies]

; 選項 (只使用其中一個)
; Accept all cookies
"BehaviorPrivateBrowsing"="accept"
; Reject third party cookies
"BehaviorPrivateBrowsing"="reject-foreign"
; Reject all cookies
"BehaviorPrivateBrowsing"="reject"
; Reject third party cookies for sites you haven't visited
"BehaviorPrivateBrowsing"="limit-foreign"
; Reject cookies for known trackers
"BehaviorPrivateBrowsing"="reject-tracker"
; Partition third-party cookies (Total Cookie Protection)
"BehaviorPrivateBrowsing"="partition-foreign"
; Reject cookies for known trackers and partition third-party cookies (Deprecated - use Partition third-party cookies)
"BehaviorPrivateBrowsing"="reject-tracker-and-partition-foreign"
CMD
:: 選項 (只使用其中一個)

:: Accept all cookies
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "accept" /f
:: Reject third party cookies
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject-foreign" /f
:: Reject all cookies
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject" /f
:: Reject third party cookies for sites you haven't visited
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "limit-foreign" /f
:: Reject cookies for known trackers
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject-tracker" /f
:: Partition third-party cookies (Total Cookie Protection)
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "partition-foreign" /f
:: Reject cookies for known trackers and partition third-party cookies (Deprecated - use Partition third-party cookies)
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "BehaviorPrivateBrowsing" /t REG_SZ /d "reject-tracker-and-partition-foreign" /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Force | Out-Null

# 選項 (只使用其中一個)
# Accept all cookies
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'accept' -Force | Out-Null
# Reject third party cookies
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject-foreign' -Force | Out-Null
# Reject all cookies
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject' -Force | Out-Null
# Reject third party cookies for sites you haven't visited
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'limit-foreign' -Force | Out-Null
# Reject cookies for known trackers
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject-tracker' -Force | Out-Null
# Partition third-party cookies (Total Cookie Protection)
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'partition-foreign' -Force | Out-Null
# Reject cookies for known trackers and partition third-party cookies (Deprecated - use Partition third-party cookies)
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'BehaviorPrivateBrowsing' -PropertyType String -Value 'reject-tracker-and-partition-foreign' -Force | Out-Null