The crackdown comes after YouTube has courted controversy for its handling of harassment allegations on its platform in the past.