Alternately, use the URI module and the host() method.
In reply to Re: Getting the URL of a referer by chromatic in thread Getting the URL of a referer by ACJavascript