I'm trying to enforce an URLAllowlist
for my local Chromium (Version 89.0.4389.90, Snap) on Ubuntu 20.04.2 LTS.
According to Google the policy should be available. The Chromium project discusses the format of such lists.
Following this guide from Google:
Go to your /etc/opt/chrome/policies/managed folder.
Create or update a JSON file and enter URLs as needed:
In URLBlocklist, add the URLs that you want to block.
In URLAllowlist, add the URLs that you want users to access.
Deploy the update to your users.
I placed two .json files (URLAllowlist.json, URLBlocklist.json) in the above mentioned directory and restarted Chromium. However, chrome://policy/ does not show any active policies.
I also followed this Chromium guide, but the example policy isn't even applied.
EDIT: I see no difference, whether using:
/etc/opt/chrome/policies/managed/
/etc/chromium/policies/managed/
~/snap/chromium/common/chromium/Default/policies/managed/
~/.config/chromium/policies/managed/
How do I deploy URLAllowlist/URLBlocklist for Chromium on Ubuntu?