By default, WordPress gives you an option add comment section under the every post of your website. This comment section allows your site visitors to add their comments on your posts. Due to this features many spammers are posted many unwanted comments and spam links in your website to get the backlink.
If you want to remove these type of links fro your website, then there are two ways to handle these types of spammers. First, you can remove the website text box option from your comment form. A few days back I have written a tutorial, check out:
If you don’t want to remove the website text box from comment form, then go for the second option. Open functions.php file from your current activated theme folders and add the below code at the end of the file.
remove_filter('comment_text', 'make_clickable', 9);
Now all URLs posted in your comments will not be turned into actual links anymore…
Do you like & share this tutorial with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials. Also subscribe my blog to get every future WordPress tips and tricks directly in you mailbox.
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.