Magnetic shield

A magnetic shield is an energy field which can prevent the use of a transporter.

Such a shield was in use at the Klingon penal colony Rura Penthe to prevent ships from beaming prisoners away from the prison. In 2293, Captain Kirk and Doctor McCoy were able to make the long and dangerous journey across the surface to escape the shield's influence, where they were subsequently beamed up by the USS Enterprise (NCC-1701-A). 

The Aldeans also used a magnetic shield to block transporter functions, as part of their reclusive tendencies. In 2364, upon revealing themselves to the crew of the USS Enterprise (NCC-1701-D), the Aldeans kidnapped a number of children from the ship, in an attempt to reinvigorate their culture. In response, the Enterprise crew conducted an analysis which revealed momentary fluctuations in the shield. Isolating these fluctuations, an away team was able to beam down and disable the shield, successfully gaining the upper hand. 

Bouclier magnétique