how to make roller support in one direction only Example ( -x) only and free in the (+x)

how to make roller support in one direction only Example ( -x) only and free in the (+x)