Removed watchdog and added a whitelist check if there's a referrer.