Public flogging was widely carried out by the Taliban between 1996 and 2001 when they ruled over Afghanistan for the first time.