Biped joint rotation limit, how to do?


I'm trying to figure out how to limit the biped joints in rotation.
For a normal bone structure or objects, one can setup a limit rotation controller.
But this isn't possible for a biped.
How is the limit rotation done for a biped?
By scripting perhaps?

Greetings, Ludo Timp, The Netherlands