I don’t fully understand what is written on this website but it seems that male students are being punished for not having the proper hairstyle. I remember that we have some rules in high school on good grooming. Boys’ hair should not reach their ears and collars while girls should wear clips. The penalty is not serious, just a warning and a few words of advice from the homeroom teacher. If you fail to follow, then you’ll have to do more classroom service like cleaning after classes. As far as I can remember, the teachers at my high school never hit us. We were treated like young adults and were expected to act like one.
Even when I was in the Philippines, I don’t think that corporal punishment is an effective method in disciplining. It would just add to the hatred and distrust.