handling invalid referer url