Adding referer check.