I have been looking at your replies at this thread, and I think you are confusing legality with ethics (at least in the nature of the law and visa regulations).
I am sure it is perfectly legal to work on something for your brother, while he earns the money off the product/app/website.
The point I am trying to get across is that such restrictions kill (or seriously hurt) any attempt of innovation coming from people on H1B visas. There are a number of ways to try to circumvent the laws, but the risks associated with them make it not worth the attempt.
I would not risk my status here or the possibility of owning a green card for a side project that makes me a couple hundred dollars a month. It is not worth it.
We should not have to come up with "creative ways" to do something simple like ads on side projects (be it a blog or a free app).