Unfortunately, if they see the code to run the system, it doesn't really matter if they legally own the code or you legally own it. Once they have a copy, they can trade it even if you own it, because there is really no way you can prove otherwise.
If they run a server somewhere to trade it...