Locking bones?

Is there any way to lock certain bones in an armature so that they arent effected by IK?

You can try no including them in the chain, or if you have to you can lock their rotation under the IK tab, so they won’t rotate (but still move if their parents rotate I suppose).