Yes, at least the H-1B does prohibit earning income from any other 'projects' other than your sponsored job, with the exception of capital gains/interest from holding assets.
Yes, it does. With H1B visa, you cannot work for more than 40 hours and it has to be with a single employer.