Use an unused check and write VOID in large letters across the front (over the payee and amount), don’t sign or fill any fields, and keep the routing/account numbers at the bottom legible. Optionally write “For direct deposit only”, make a copy/scan for your records, and give it to your employer/bank via a secure method.