How to Remove Spam Links From WordPress Comments

Prem Tiwari - - WordPress, WordPress Beginners, WordPress Snippets

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.

How to Remove Spam Links From WordPress Comments

How to Remove Spam Links From WordPress Comments

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.

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.

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

Tags: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.