请勿追踪
Do_not_track

原始链接: https://donottrack.sh/

## `DO_NOT_TRACK` 提案:用于遥测的通用退出机制 目前,退出各种 CLI 工具和 SDK 的遥测数据收集是一个零散的过程,需要了解许多独特的环境变量。这给优先考虑隐私并希望使用“本地软件”的用户带来了令人沮丧的体验。 该提案引入了一个单一、标准化的环境变量:**`DO_NOT_TRACK=1`**。设置此变量将向软件发出用户希望禁用所有非必要数据收集的信号——包括广告跟踪、使用情况报告、遥测和崩溃报告——在任何兼容的软件中。 该提案鼓励开发者检查他们的工具中是否存在此变量,并尊重用户的偏好,同时保留任何现有的退出机制。最终,它提倡转向选择加入遥测作为更尊重隐私的默认方式。在您的 shell 配置文件中设置 `DO_NOT_TRACK=1` 提供了一种简单、通用的方式来控制您的数据。

一个 Hacker News 的讨论集中在软件工具和框架中默认遥测数据收集日益普遍的问题上。用户表达了难以选择退出的沮丧,并举例说明了 Hugging Face 的 `transformers` 库以及各种部署平台(DollarDeploy、Storybook、Next.js)。 许多人提倡选择默认尊重用户隐私的替代方案,认为预先启用的遥测是一种“黑暗模式”。其他人分享了用于禁用特定工具遥测的有用 shell 命令,还有人建议维护一个全面的退出配置列表。 解决方案从利用遥测域名的 DNS 黑名单,到更激烈的措施,例如抵制从事此类行为的公司。一个关键的结论是,用户希望对数据收集拥有更大的控制权和透明度。
相关文章

原文
DO_NOT_TRACK

The Problem

Many CLI tools, SDKs, and frameworks collect telemetry data by default. Each one has its own way to opt out:

Tool Opt-out method
.NET DOTNET_CLI_TELEMETRY_OPTOUT=1
AWS SAM CLI SAM_CLI_TELEMETRY=0
Azure CLI AZURE_CORE_COLLECT_TELEMETRY=0
Gatsby GATSBY_TELEMETRY_DISABLED=1
Go go telemetry off
Google Cloud SDK gcloud config set disable_usage_reporting true
Homebrew HOMEBREW_NO_ANALYTICS=1
Netlify CLI netlify --telemetry-disable
Syncthing STNOUPGRADE=1

You get the idea. There are too many, and they are all different.

The Proposal

A single, standard environment variable that clearly and unambiguously expresses a user's wish to opt out of any of the following:

  • Ad tracking
  • Usage reporting, anonymous or not
  • Telemetry
  • Crash reporting
  • Non-essential-to-functionality requests to the creator of the software or third-party

We just want local software.

export DO_NOT_TRACK=1

Add the line above to your shell configuration file so it applies to all your terminal sessions:

Shell File Syntax
Bash ~/.bashrc export DO_NOT_TRACK=1
Zsh ~/.zshrc export DO_NOT_TRACK=1
Fish ~/.config/fish/config.fish set -x DO_NOT_TRACK 1
PowerShell $PROFILE $env:DO_NOT_TRACK = "1"
Windows (CMD) System Environment Variables setx DO_NOT_TRACK 1

For Software Authors

If you develop tools that collect telemetry, analytics, or make non-essential network requests, please check for this variable:

  • If DO_NOT_TRACK is set to 1, disable all tracking
  • Respect the variable alongside your existing opt-out mechanisms
  • Consider making telemetry opt-in rather than opt-out

See Also

联系我们 contact @ memedata.com