work around no-protocol issue in referrer check script