Style External Links with CSS

a[href^="http://"]:not([href*="mysite.com"]),
a[href^="https://"]:not([href*="mysite.com"]), 
a[href^="//"]:not([href*="mysite.com"]), {
    /* external link styles, use :before or :after if you want! */
}

Source