This looks a bit weird to me. Should it not look up the referrer domain in the domain set and not the other way around like it's currently doing? Also, could case be an issue here?