An alleged child sex offender can be identified for the first time after a judge lifted a gagging order.