WordPress converts plain text links in comments into anchor tag links that are clickable. You might want to disable this to prevent people from linking to unwanted websites.
Copy and paste this code into your theme’s functions.php file to disable auto-linking of URLs in WordPress comments:
remove_filter( 'comment_text', 'make_clickable', 9 );
The above code removes the filter function make_clickable from the comment_text filter. This function is responsible for turning text into links in comments.