fix uri comparison for referer
move reverse match logic into async job