This script blocks spyware by AppsFlyer when running the game "Once Human" via steam. It modifies the Windows registry and hosts file to achieve this. It's made to be adaptable to any other steam game with AppsFlyer spyware. Just change the variables; $gamename
, $gameUrl
, and $gameExecutableName
.
set-executionpolicy remotesigned
For Steam: Everytime you want to start the game, run the script instead of using steam directly.
For Epic: Run one time. On line 2, change the variable $EPIC = 0 to $EPIC = 1
Clone the repository:
git clone https://github.com/Hypertoken/nospy.git
cd nospy
Run the script: Open PowerShell as an administrator and execute the script:
& '.\Once Human.ps1'
$gamename
: The name of the game.$gameUrl
: The Steam game launch URL.$gameExecutableName
: The actual game executable name (without the .exe
extension).$domainsToBlock
: List of AppsFlyer domains to block.$hostsFilePath
: Path to the HOSTS file.Test-GameRunning
: Checks if the game process is running.Ensure that the HOSTS file isn't open in another process to avoid modification issues. The script will prompt if it cannot modify the file.