Password protect/block certain plugins

Hello, I’m new to the forum, apologies if this plugin idea has already been suggested or done (let me know!). I recently came across the ‘surfing’ plugin, which although potentially useful, I find distracting, especially since I like adding friction for certain sites for more intentional browsing (ironically Obsidian presents an easy workaround, especially on Obsidian which I use for serious note-taking).

There’s currently no option to block the installation of certain plugins, or add friction before certain plugins can be installed (apart from restricted mode, which is too restrictive I find and can also be easily toggled). Ideally, such a plugin would also itself not be uninstalled easily, which would defeat the whole purpose. Not sure if this is possible and let me know if anyone else would find this useful!

It would be trivial to bypass any restrictions a plugin could impose on other plugins, since you can install and delete plugins manually from the <VAULT PATH>/.obsidian/plugins directory.

You need an OS based solution, where your OS itself prevents creating or deleting folders/files in your plugins directory. I’m not familiar enough with how to do that to provide additional info.

Yeah this makes sense, I realized after posting that maybe another plugin really isn’t the solution if I can just disable the plugin itself.

I found another approach that works using the admin account on my Mac to create a ‘dummy file’ for certain plugins (i.e., some file with the same name as the plugin folder), and then restricting the writing privileges to admin that then prevents installation of the plugin.