better foreign link detection