I'm trying to write an exclusion for AdGuard MV3 in Sandboxie so I can have custom blocks remain between sessions, but for some reason the exclusion line is not working. I'm not sure why. The location and the ID are correct. Has anyone gotten this to work?
OpenFilePath=vivaldi.exe,C:\Users\<user>\AppData\Local\Vivaldi\User Data\Default\Extensions\apjcbfpjihpedihablmalmbbhjpklbdf*\*
Your line is very likely “not working” for two separate reasons:
1) The wildcard/path is wrong for the Extensions folder
In Chromium profiles the layout is typically:
C:\Users\...\User Data\Default\Extensions\<extension_id>\<version>\...
So you need a backslash before the version wildcard. Your current pattern:
...Extensions\apjcbfp...bdf*\*
would only match a folder name that literally starts with the ID and continues in the same path component, but the real path has a path separator after the ID.
Use this form instead:
- OpenFilePath=vivaldi.exe,C:\Users\YourUser\AppData\Local\Vivaldi\User Data\Default\Extensions\apjcbfpjihpedihablmalmbbhjpklbdf\*\*
Also make sure you replaced “<user>” with the real username. Sandboxie won’t expand “<user>”.
2) AdGuard MV3 custom blocks usually are NOT stored in the Extensions\<id>\... folder
That folder is basically the installed extension package (versioned). Custom rules / settings are typically stored in the profile data stores, for example:
- ...\Default\Local Extension Settings\<extension_id>\...
- ...\Default\IndexedDB\chrome-extension_<extension_id>_0.indexeddb.leveldb\...
- and sometimes the profile Preferences file
So even if you open the Extensions folder correctly, your custom blocks may still reset because the actual modified data is elsewhere.
A more practical set of exclusions to try (adjust profile name if you don’t use “Default”, e.g. “Profile 1”):
- OpenFilePath=vivaldi.exe,C:\Users\YourUser\AppData\Local\Vivaldi\User Data\Default\Local Extension Settings\apjcbfpjihpedihablmalmbbhjpklbdf\*
- OpenFilePath=vivaldi.exe,C:\Users\YourUser\AppData\Local\Vivaldi\User Data\Default\IndexedDB\chrome-extension_apjcbfpjihpedihablmalmbbhjpklbdf_0.indexeddb.leveldb\*
- OpenFilePath=vivaldi.exe,C:\Users\YourUser\AppData\Local\Vivaldi\User Data\Default\Preferences
Safer alternative (often better than OpenFilePath): use Recovery
If your goal is just persistence between sessions (not live access to the real profile while sandboxed), consider recovering only those folders/files on sandbox exit instead of opening direct access. That preserves isolation better.
If you post your Sandboxie section for that box (the relevant OpenFilePath/ReadFilePath lines and whether you have any template restrictions enabled), other members can spot conflicts like a conflicting “ClosedFilePath” or a “privacy” template overriding it.