Using Animation Curves (Legacy)

Is there a way to lock certain curves? For instance, I never want to rotate in the X and Z axis. Also, why does the manual say Legacy? Is there a newer way to animate? An new guide? Thanks.

You can lock the rotation and translation along/around specific axis, using the RigidBody constraints. This affects the physics interactions and does not prevent you from actually translating or rotating the transform.