Yang Litao, 23, was found guilty of fraud and sentenced by a court in eastern Jiangsu province, state media reported.
Yang managed to obtain the site administrator’s user name and password and altered details on the site so that donations went straight into his bank account, rather than to the charity, the court heard.
He also infected the site with malware, causing it to be shut down and cleaned. The process took 72 hours, during which time no money could be accepted.
However, the site’s attack tipped off authorities and he was arrested before significant funds could be transferred to his account.