Hello,
Thank you for your question regarding automatic "nofollow" links. If you use WordPress, there are plugins that will allow you to add automatic nofollows. If you are looking for a custom solution, you may want to consider using something like jQuery.
Best,
Christopher M.