I find it very curious if they have the legal power to enforce this. If it is not in the employment contract then a prohibition like this would not stand. Sure, the employer could try to implement this but I am quite sure it is against their labour laws.
I have seen these kind of prohibitions at for example Nasdaq OMX. I assume it is legal if it is agreed in a contract. There is a balance here what might be a "human right" and what could be in conflict with the best of the company -- and it would seem reasonable for a company to try this. If they will find people willing to sign that contract is another matter altogether.