I would like to spot if anyone is trying to hijack my site through a redirect by running a script to look in referrer information, but my programmers tell me they have run experiments and there is nothing in referrer about the site performing the redirect. Referrer info only contains information about the previous site they clicked through from.
To compound this problem if the referrer is cloaking and directing only Google to my site, and sending human users elsewhere the only user coming via the redirect will be Googlebot. I don't know if Googlebot even gives referrer info.
Has anyone tried to write a tool to spot hijacks? Did you have success?
Added by Nick
See DaveN's post a little further down for some practical advice on stopping a Hijack before it starts.