added limit for max referer length