Can you exclude liability?

Is it possible to exclude liability completely, or can it merely be limited? And what measures do you have to take to do so?