Modifying the DragRidigBody script to disable rotation

I am using the DragRigidBody Script from the standard assets package to move object on the floor of a room. Is there a way to make the script only affect the movement of the object and not its rotation? For example, imagine you are moving a chair around in a furniture simulator, it won’t make sense for the user to rotate the chair upside down by any means.

Also, can I restrict the movement to x and z only (no movement up from the ground)

You can do this quite easily using a configurable joint on the rigidbody object. Set the angular XYZ motion constraints and the Y motion constraint to Locked. You also need to enable the Configured In World Space option. With these settings, the object should be held at its initial rotation and height but move freely in the X and Z axes.