How to limit the rotation of a rigid body?

how can I limit the rotation of a rigid body let’s say on the y axis
Constrain does not fit

Some discussions about the same topic:

https://forum.unity.com/threads/limit-rotation-on-a-rigidbody.97854/