People who are hit by the heart-piercing spell will feel piercing pain all over the body, and the heart-piercing pain will make the caster miserable and even die. The cursed person in the imperius curse will feel a blank in his mind, then he will feel extremely happy, and then a voice will ask the cursed person to do something. This magic is an unforgivable curse.
Harry Potter's school rules
The forbidden forest in the school is not allowed to enter.
If you can't attend class under special circumstances, you should ask for leave from the dean of the college or the prefect.
Don't run around in the middle of the night without sleeping.
There is no magic in the corridor.
Don't cast magic on anyone.
Don't bring dangerous goods into school.
You can't learn dark magic unless you want to be Voldemort II.
Don't concoct dangerous drugs.
Except for the training needs of Quidditch students and after class, brooms are not allowed to be used in the rest of the time.
No truancy.
Books in the forbidden area need the teacher's signature to borrow.