You can lock an object’s ability to move, rotate, or scale about any of its local axes by selecting objects and then setting options on the Locks rollout of the Hierarchy panel.
Enabling and disabling Local transform axes is also referred to as setting degrees of freedom (DoF) for an object. If an axis is enabled, an object is free to transform about that Local axis.
The Locks rollout contains three groups: one each for Move, Rotate, and Scale. Each group contains three options, one each for the X, Y, and Z Local axes of the selected objects.
Objects can still be transformed by other means such as being a child of a transformed parent object or being part of an inverse kinematics chain.