how to limit rotation

i need to limit rotation on my motorbike so it doesnt go sideways when it goes up the jump, i remember clicking something to do it before but i cant remember how

The Freeze Rotation settings on the rigidbody component, in the inspector?

to limit the rotation use Mathf.Clamp