Updated Answer as of Gen 9:
Note: Pokemon holding the item Shed Shell are immune to the effect of trapping moves and abilities. Ghost-types starting in Gen 6 are immune to the effects of trapping moves and abilities.
Binding Moves
These are the moves that make a Pokemon take chip damage from the binding move. These are the following binding moves:
Bind
Clamp
Fire Spin
G-Max Centiferno
G-Max Sandblast
Infestation
Magma Storm
Sand Tomb
Snap Trap
Thunder Cage
Whirlpool
Wrap
Source
Trapping Moves
These moves that trap Pokemon don't deal the chip damage like the binding moves do:
Anchor Shot
Block
Fairy Lock
G-Max Terror
Ingrain
Jaw Lock
Mean Look
No Retreat
Octolock
Shadow Hold
Spider Web
Spirit Shackle
Thousand Waves
Source
Trapping Abilities
These Abilities trap Pokemon if they aren't immune to it:
Arena Trap: Traps grounded Pokemon. Flying-types, Ghost-types (Gen 6 onwards), Pokemon with the Ability Levitate, Pokemon holding Air Balloon, and Pokemon affected by Magnet Rise or Telekinesis don't get affected by Arena Trap.
Magnet Pull: Traps Steel-types that aren't a Ghost type as well (Gen 6 onwards).
Shadow Tag: Traps all Pokemon as long as they aren't a Ghost-type (Gen 6 onwards) or have the Ability Shadow Tag. (Gen 4 onwards)
Source
Pokemon who have the Ability Suction Cups can't be forced to switch out or flee.