The material below is Open Game Content from a 3PP Source
School divination; Level bard 4, inquisitor 4, sorcerer/wizard 4, witch-4wfg 3, witch 4
Casting Time 1 standard action
Components V, S, M (a piece of mirror and a miniature brass hearing trumpet)
Range 40 ft.
Area 40-ft.-radius emanation centered on you
Duration 24 hours
Saving Throw none; Spell Resistance no
You immediately become aware of any attempt to observe you by means of a divination (scrying) spell or effect. The spell's area radiates from you and moves as you move. You know the location of every magical sensor within the spell's area.
If the scrying attempt originates within the area, you also know its location; otherwise, you and the scrier immediately make opposed caster level checks (1d20 + caster level). If you at least match the scrier's result, you get a visual image of the scrier and an accurate sense of his direction and distance from you.