Checks AP referrer against current page URL.