Trap

Trap is a type of disable that completely or partially surrounds a unit with immobile objects or restricts their movement in such a way that they cannot escape. Traps do not prevent any actions, such as attacking or using abilities and items, from being performed. Spell interactions might be different for each traps with any escape skills.

Pathing Blockers
A pathing blocker is an invisible entity with a collision size that physically blocks other units. Walking against a pathing blocker is akin to walking against any other unit that is not phased or flying, or walking against trees.

Phased movement does not allow a unit to path through pathing blockers, but unobstructed movement (which includes flying movement as well) does. Lane creeps cannot walk around pathing blockers and try to walk through them, effectively getting fully stopped by them. Player-controlled units try to path around them if possible.

The following abilities use pathing blockers

Barriers
A barrier is a force field that prevents a unit from moving out of or into the affected area, by drastically slowing their movement speed towards 0 when close to the edges of the field. This slow is only affects the unit when trying to cross the barrier, if the unit turns around and walks away from the edge, they are not slowed anymore.

The following abilities create barriers

Forced Movement Blocked by Barriers
Barriers also work against several sources of forced movement, stopping their movement instantly once the unit gets pushed towards the edge of the field. However, the forced movement itself is not canceled, meaning if the barrier disappears, the forced movement may continue towards that direction.

The following abilities cannot move units through barriers.