Isolate a Game From Your Files and Network on Windows
In this article
This guide shows you how to run a game in a locked-down environment on Windows so it cannot access your personal files or the internet. You will set up a separate Windows user account with restricted permissions, use built-in firewall rules to block network access for the game, and optionally run it in a sandbox for extra isolation. This is useful for suspicious or older games, multiplayer games you want to play offline, or testing software you do not fully trust.
What You'll Need
- A Windows PC with administrator access (Windows 10 or 11).
- The game installed or a way to install it (installer, disc, or download).
- If the game needs internet for installation or updates, plan to do that before isolating it.
- Optional: a third-party sandbox program (like Sandboxie) if you want an extra layer of protection.
Step-by-Step
- Create a restricted user account. Open Settings > Accounts > Family & other users. Click Add someone else to this PC and choose Add a user without a Microsoft account. Create a new local account (e.g., "GameUser") and set a password. Make it a Standard User, not an Administrator.
- Install the game under that account. Log into the new account and install the game there. This keeps the game's files and registry entries separate from your main account. If the game is already installed on your main account, you can either reinstall it under the new account or copy the game folder to a location the new account can access (like C:\Games\).
- Restrict file access for the game. By default, a standard user cannot read other users' folders (like C:\Users\YourName\Documents). To further limit access, you can set explicit permissions on your personal folders. Right-click your user folder in File Explorer, go to Properties > Security, and edit permissions to deny the "GameUser" account read access. Be careful not to lock yourself out.
- Block network access via Windows Firewall. Open Windows Defender Firewall from Control Panel. Click Advanced settings (requires admin). In the left pane, select Outbound Rules, then New Rule... in the right pane. Choose Program, browse to the game's executable (e.g., C:\Games\MyGame\game.exe), select Block the connection, and apply to all profiles (Domain, Private, Public). Name it something like "Block Game Network". Repeat for any other executables the game uses (launchers, updaters).
- Run the game as the restricted user. Log out of your main account and log into the "GameUser" account to play. This ensures the game runs with limited privileges and no access to your personal files.
- Optional: use a sandbox for extra isolation. Install a sandbox program like Sandboxie on your main account. Right-click the game's shortcut and choose Run Sandboxed. This creates a virtual environment where the game can write files and access the network (if you allow it) without touching your real system. You can combine this with the firewall rule to block network access entirely.
- Verify isolation. While the game is running, check the firewall rule is active (the rule should show "Yes" in the Enabled column). Also, try to access a file from your main user folder within the game's file browser (if it has one) to confirm it cannot see it.
Common Mistakes
- Forgetting to block all executables. Many games have separate launchers, anti-cheat services, or updaters. If you only block the main .exe, the launcher can still access the network.
- Making the restricted user an administrator. If you give the game account admin rights, it can bypass file permissions and firewall rules (with a prompt).
- Installing the game on the main account first. The game's saved data and settings may be stored in your main user's AppData folder, which the restricted account cannot access, causing errors.
- Not testing the firewall rule. Sometimes the rule doesn't apply because the game uses a different executable path or a service. Always test by trying to go online in the game.
Tips
- Use a separate drive or partition for game installations (e.g., D:\Games) and set permissions to deny the restricted user write access to other folders.
- For games that need to write saves, create a dedicated folder (like C:\GameSaves) and give the restricted user full control only on that folder.
- If the game requires internet for DRM (like Steam), you can block Steam's network access instead of the game's .exe, but note that Steam may not run offline for all games.
- Use a virtual machine (like VirtualBox) for the highest level of isolation. This is overkill for most games but is the most secure option.
Troubleshooting
Game won't start after creating the restricted account. Check that the game has write permission to its installation folder and to the save location. If it needs to write to Program Files, install it to a different folder like C:\Games.
Firewall rule doesn't block the game. Confirm the rule is enabled and applies to all profiles. Some games use a different executable (e.g., a service). Use Resource Monitor (open with Win+R, type resmon) to see which process is making network connections, then block that specific process.
Game can still see your files. Check the permissions on your user folder. Right-click the folder, go to Properties > Security > Advanced, and ensure "GameUser" has "Deny" for "Read" and "List folder contents". Also, check if the game is running with elevated privileges (as admin) – that bypasses permissions.
Game crashes or saves don't work. The restricted account may lack write access to the game's save folder. Create a new folder, give the restricted user full control, and set the game to save there (if possible).
Sandboxed game runs slowly or fails. Some games are incompatible with sandboxing, especially those with anti-cheat. Try running the game without the sandbox but with the firewall rule and restricted account.
Frequently Asked Questions
Q: Can I use a standard Windows account for this? Yes, a standard (non-admin) account is the foundation of this method. It limits what the game can do to the system.
Q: Will this affect the game's performance? No, running the game under a restricted account or with a firewall rule does not impact performance. Sandboxing may add slight overhead, but it's usually negligible.
Q: Can I play multiplayer games with this setup? If you block network access, no. If you want to play online, you need to allow network access for the game, which means it can also send data. For multiplayer, consider using a sandbox with network access enabled, but be aware of privacy risks.
Q: How do I remove the isolation later? To undo, delete the firewall rule, delete the restricted user account (via Settings > Accounts), and remove any sandbox configuration. Your main account remains untouched.
Q: Does this protect against all malware? No. A game could exploit a Windows vulnerability to escape the user account or sandbox. For high-risk software, use a virtual machine or a dedicated computer.
Q: Can I use this for games from Epic, Steam, or GOG? Yes, but note that those platforms require network access for initial installation and updates. You can install the game, then block the platform's network access, but the platform may refuse to launch the game offline.