- 您知道公司如何添加此隐私设置(我已经为我的公司条目域模式添加了附加信息......),这怎么可能?
Policies
可以设置覆盖用户Preferences
设置的Settings
。
请参阅面向管理员的文档,点击Windows 快速入门、Mac 快速入门或Linux 快速入门中的链接。阅读在 Chrome 中配置其他首选项、策略设置
我应该使用首选项还是策略?
如果您想设置一些由偏好和策略共同完成的特定行为,并且您不确定应该使用哪一个,只需回答:您希望用户能够更改此设置吗?
用户不能随意更改策略,但他们可以更改自己的偏好。
请注意,这些文件更改Preferences
应该在 chrome, chromium 关闭时进行,即没有正在进行的流程实例,以避免在 chrome, chromium 再次启动时SingletonLock
没有在目录 a 中创建文件。Default
在浏览器配置文件的文件中设置首选项Preferences
,例如$ gedit ~/.config/chromium/Default/Preferences
"popups":{"[*.]domain1.com,*":{"setting":2},"[*.]domain2.com,*":{"setting":1}}
where2
阻止弹出窗口,1
允许弹出窗口,另见DefaultPopupsSetting
。
Behavior
at右侧的Pop-up exceptions
图标Settings
表示
此设置由您的管理员强制执行。
政策可以应用于设备为设备或用户设置 Chrome 政策由管理员为用户设置 Chrome 政策。
不同平台的策略格式为
示例值:
视窗:
Software\Policies\Google\Chrome\PopupsAllowedForUrls\1 = "https://www.example.com"
Software\Policies\Google\Chrome\PopupsAllowedForUrls\2 = "[*.]example.edu"
安卓/Linux:
["https://www.example.com", "[*.]example.edu"]
苹果电脑:
<array>
<string>https://www.example.com</string>
<string>[*.]example.edu</string>
</array>
例如,要为 *nix 平台上的弹出窗口创建强制策略,您可以.json
在以下位置创建文件/etc/chromium-browser/policies/managed/
$ sudo touch /etc/chromium-browser/policies/managed/popup_policy.json
$ gksudo gedit /etc/chromium-browser/policies/managed/popup_policy.json
然后设置弹出策略PopupsBlockedForUrls
,PopupsAllowedForUrls
{
"PopupsBlockedForUrls": ["[*.]example.com", "[*.]example1.com]"],
"PopupsAllowedForUrls": ["[*.]example2.com", "[*.]example3.com]"]
}
当 chrome, chromium 启动时,您可以通过导航到
chrome://policy
应在何处列出政策;例如
Applies to Level Source Policy name Policy value Status
Machine Mandatory Platform PopupsBlockedForUrls [*.]example.com, [*.]example1.com] OK
policy_templates.json中提供了示例策略列表模板,另请参阅策略模板。