Warning: This is 3.0 Edition material. It is possible that there is more recent 3.5 Edition version.
Inaccurate?

Dimensional Lock

(Tome and Blood: A Guidebook to Wizards and Sorcerers)

Abjuration
Level: Cleric 8, Sorcerer 8, Wizard 8,
Components: V, S,
Casting Time: 1 action
Range: Medium (100 ft. + 10 ft./level)
Area: 15-ft.-radius emanation centered on a point in space
Duration: 1 day/level
Saving Throw: None
Spell Resistance: Yes

You create a shimmering emerald field that completely blocks physical extradimensional travel.
Forms of movement barred include astral projection, blink,
dimension door, ethereal jaunt, etherealness, gate,maze, phasing,
plane shift, shadow walk, teleport, and similar spell-like and psionic abilities.
Once the spell is in place, extradimensional travel into or out of the affected area is not possible.
The dimensional lock does not interfere with the movement of creatures already in ethereal or astral form when the spell is cast, nor does it block extradimensional perception or attack forms such as a basilisk's gaze.
It also does not prevent summoned creatures from disappearing at the end of a summoning spell.

Also appears in

  1. Player's Handbook v.3.5
  2. Magic of Faerun