Skip to content

Instantly share code, notes, and snippets.

@hexakon
Created December 16, 2025 18:03
Show Gist options
  • Select an option

  • Save hexakon/0741aa53f58a881420fc95f141a5f2e1 to your computer and use it in GitHub Desktop.

Select an option

Save hexakon/0741aa53f58a881420fc95f141a5f2e1 to your computer and use it in GitHub Desktop.
How to use allowed_symlinks
@Eir-nya

Eir-nya commented Jun 13, 2026

Copy link
Copy Markdown

Thank you for documenting this. I agree, it's strange there's almost no documentation on this anywhere. Even on Minecraft.wiki, it's mostly in patch notes!

For anyone else stumbling onto this page, here's some info I've gathered about this feature from testing. I am using Linux, so I can't confirm on Windows, but as far as I can tell, these applie to both.

  • Rules in allowed_symlinks.txt refer to the destination the symlink points to, not the location of the symlink.
  • Regex rules must match the entire symlink destination path.
  • Path matching starts from the root of your device, at least as far as I can tell. For instance, /mnt/other_drive/Games/PrismLauncher.
  • If Minecraft fails to parse allowed_symlinks.txt, for example if there's invalid syntax, all symlinks are disabled.
  • Symlink blocking also applies to resource packs, apparently! (Confirmed in Minecraft 1.20.1 and 26.1.2) I don't know if it also applies to server-resource-packs, but I assume so.

The naïve thing to do is write a rule like [regex].+, C:/, or /, to allow all symlinks. But that defeats the purpose of this feature. It was added for security reasons, so I think it's wiser to whitelist individual paths instead, like /mnt/other_drive/Games/PrismLauncher in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment