diff --git a/src/Appwrite/Platform/Tasks/Install.php b/src/Appwrite/Platform/Tasks/Install.php index ac5b2c1a03..7bbdf87350 100644 --- a/src/Appwrite/Platform/Tasks/Install.php +++ b/src/Appwrite/Platform/Tasks/Install.php @@ -15,6 +15,7 @@ use Utopia\Config\Config; use Utopia\Console; use Utopia\Fetch\Client; use Utopia\Platform\Action; +use Utopia\System\System; use Utopia\Validator\Boolean; use Utopia\Validator\Text; use Utopia\Validator\WhiteList; @@ -851,6 +852,12 @@ class Install extends Action return; } + // Opt out via DO_NOT_TRACK (https://donottrack.sh/) + $doNotTrack = \strtolower((string) System::getEnv('DO_NOT_TRACK', '')); + if (\in_array($doNotTrack, ['1', 'true', 'yes'], true)) { + return; + } + $appEnv = $input['_APP_ENV'] ?? 'development'; $domain = $input['_APP_DOMAIN'] ?? 'localhost';