Check the referring URL