Fix referer check

Created by  Eelco Dolstra  on October 21, 2016
TYJWUORCOTAXF3OPVYJL3SCH3QYXZW5FLHKI3XSI4IVBV5XPEHAAC
Change contents