If you are on a student visa, you cannot work unless you get special permission from the government. Pretty straightforward and easy to do. PT work only.
Making money via Internet work as you described is none of Japan's business. Feel free to continue doing it.