Preventing websites from redirecting top-level window