You can lock or unlock a layer in the Layers palette or by selecting an object.
.
.
= locked
blank = unlocked
.
.
Objects on locked layers appear faded and a small lock icon is displayed when you hover over the object. Set the fade level for locked layers with the system variable LAYLOCKFADECTL.