HONG KONG — At the Addiction Treatment Center in eastern China, more than 6,000 internet addicts — most of them teenagers — not only had their web access taken away, they were also treated with electroshock therapy.

The center, in Shandong Province, made headlines in September after one of its patients killed her mother in retribution for abuse she had purportedly suffered at the camp during a forced detox regimen.

Now China is trying to regulate camps like the one in Shandong, which have become a last resort for parents exasperated by their child’s habit of playing online games for hours on end.

The government has drafted a law that would crack down on the camps’ worst excesses, including electroshock and other “physical punishments.” Medical specialists welcomed the law, announced this week in China’s state-controlled news media, as an initial step toward curbing scandals in the industry.