Make sure your site is not embeded in an iFrame.

if (top != self) {
  top.location=self.location;
}