One way rigidbody collisions

I have an object with rigidbody but I don’t want other objects interact with it. How do I do it?

EDIT: I can now ignore collision between my object and every other object (withPhysics.IgnoreCollision), but I want my object to keep reacting to collisions. Still not solwed.

you should put it in a layer and uncheck the collision with that layer and
other layer using collision matrix,it is explained here