You want to allow them to move a little bit, as he was explaining above, what you want to do is track just how far they have moved outside of the initial location and prevent them from going farther than a distance that you set.
If you literally lock their head in place and only allow rotation it is a pretty terrible experience.