关于阻止Unity游戏遥测的技术问询:含连接主机查询与Windows防火墙配置方法
Hey there, totally get your frustration with Unity's recent changes and the telemetry concerns—let's break this down step by step to get you set up.
一、Unity游戏常见的遥测连接主机
Unity games typically send telemetry data to these core domains/hosts:
analytics.cloud.unity3d.com– The main endpoint for Unity Analytics data collectionperf.cloud.unity3d.com– Used for gathering performance-related telemetryconfig.unity3d.com– Handles configuration checks and telemetry setupservices.unity3d.com– General Unity service communication that often includes telemetry payloadsapi.unity.com– Some authentication flows and telemetry-related API calls originate here
Note: A small number of games might use custom subdomains tied to Unity's services, so you may need to do a quick traffic capture if you notice gaps later.
二、Windows防火墙配置阻止步骤
Here's how to block these hosts using Windows' built-in firewall—no extra software required:
Launch Advanced Firewall Settings
- Press
Win + R, typewf.msc, and hit Enter to open the Windows Defender Firewall with Advanced Security console.
- Press
Create a New Outbound Rule
- In the left sidebar, click Outbound Rules, then in the right "Actions" pane, select New Rule...
Select Custom Rule Type
- Pick Custom from the list (this gives you full control over the rule) and click Next.
Apply to All Programs
- Leave the default "All programs" option selected (covers every Unity game on your system) and click Next.
Set Protocol to Any
- Keep Protocol type as Any (blocks both TCP and UDP traffic to these hosts) and click Next.
Specify Remote Hosts to Block
- Under "Which remote IP addresses does this rule apply to?", choose These IP addresses.
- Click Add..., then enter each of the Unity domains listed above one by one. Windows will automatically resolve the domains to their corresponding IP addresses.
- Once all hosts are added, click Next.
Choose to Block the Connection
- Select Block the connection (this stops all outgoing traffic to the specified hosts) and click Next.
Apply to All Network Profiles
- Check all three boxes: Domain, Private, and Public—this ensures the rule works no matter what network you're on. Click Next.
Name and Finalize the Rule
- Give the rule a clear name like "Block Unity Telemetry" and add a brief description if you want. Click Finish to save it.
Optional: Add an Inbound Rule
- While outbound rules are usually sufficient, if you want to lock things down completely, repeat the same steps to create an Inbound Rule blocking incoming connections from Unity's hosts.
Quick Troubleshooting Tip
If you notice a Unity game still sending data after setting up the rule, use Windows' Resource Monitor (search for it in the Start Menu) or a tool like Wireshark to capture outgoing traffic. Look for new domains/IPs tied to Unity, then add them to your existing firewall rule.
备注:内容来源于stack exchange,提问作者Roboko




