[link to en.wikipedia.org
Kellogg worked on the rehabilitation of masturbators, often employing extreme measures, even mutilation, on both sexes. In his Plain Facts for Old and Young, he wrote
“ A remedy which is almost always successful in small boys is circumcision, especially when there is any degree of phimosis. The operation should be performed by a surgeon without administering an anesthetic, as the brief pain attending the operation will have a salutary effect upon the mind, especially if it be connected with the idea of punishment, as it may well be in some cases. The soreness which continues for several weeks interrupts the practice, and if it had not previously become too firmly fixed, it may be forgotten and not resumed. ”
“ In females, the author has found the application of pure carbolic acid [phenol] to the clitoris an excellent means of allaying the abnormal excitement. ”
He also recommended, to prevent children from this "solitary vice", bandaging or tying their hands, covering their genitals with patented cages, sewing the foreskin shut, and electrical shock.