I have a custom made CMS, which accepts user comments. How can I check user submitted comments and add a nofollow or change the link to something like my_domain.com/redirect.php?a=[external_link_here]