Completely unenforceable and just shows insecure your friends boss is. Employers should spend their time engaging employees rather than worrying about what they so in their spare time.
I can relate, as what you have described is very common in the recruitment industry.