Pull the Ethernet cable or disable Wi-Fi. This halts the miner’s communication and prevents remote commands.