Avoid displaying history back if referrer is from different domain