Stopping Rotation

Hello Unity! I was wondering how to stop rotation. Whenever my character bumps into anything, it begins spinning. How could I stop this, permanently setting the rotation to default?

Try freezing rotation in rigidbody options