Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4289  / 2 Years ago, wed, december 29, 2021, 3:39:21

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:




  1. Go to your /etc/opt/chrome/policies/managed folder.



  2. 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.



  3. 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?


More From » snap

 Answers
0

Installed from .deb, the correct location for the policy on Ubuntu 20.04.2 LTS is /etc/chromium-browser/policies/managed/.


Installed from snap on Ubuntu 20.04



  1. I tried solution 2) below, but it did not work. So i tried
    /var/snap/chromium/current/policies/ and then it worked



  2. I also came across users, who reported /var/snap/chromium/current/policies/managed/ is working. The same applies to me, I'm not sure which directory would be preferable here.




[#1806] Wednesday, December 29, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
homerurhyth

Total Points: 338
Total Questions: 113
Total Answers: 105

Location: Moldova
Member since Sat, Aug 6, 2022
2 Years ago
;