Handles external links and exclusion patterns