Check for external links before displaying them