Even if you do all of the above you are not completely safe but it makes you a tougher target compared to others...........
On the other hand, having a clause in your contract that
explicitly and unconditionally forbids you from ever working for any other employer might make you an extremely easy target.