Remove the Website Field from the Comment Form to STOP Spam (Easy Method)

Disable Comment Form Website URL

As any blogger knows, comment spam can seriously detract from the user experience on a WordPress site.

Not only does it clutter up otherwise valuable discussions, but it can also negatively impact your site’s reputation if left unchecked.

While there are plugins that help filter spam comments automatically (Like Akismet), one of the most effective tactics is to remove the unnecessary website field from your comment form, that spam bots commonly target.

Why Remove the Website Field from the Comment Form?

The “website” field is included by default on WordPress comment forms. Unfortunately, this field provides little value for legitimate commenters while giving spam bots an easy place to populate with garbage links. Removing it can cut down on a major point of entry for spam.

Comment SPAM” was a popular method for bots to insert backlinks to shady websites back in the day. However, even today, there is still a huge amount of comment spam being generated.

And even though WordPress now understands this and filters the spam comments pretty successfully. They are still stored in your database.

The Easiest way to Remove the Website field from the Comment Form (with a free plugin)

You can add code to your functions.php file or use a plugin that will insert it automatically for you. While all these methods work, I found one useful plugin that I was using already, that can do this very easily.

Removing the Website Field from the Comment Form with WPCode Lite plugin

WPCode Lite is a free plugin with multiple useful options. The plugin was previously known as “Insert Headers and Footers” and it has 2+ million active installations.

This is a very powerful plugin that can help you in many ways. But now let’s focus on removing the website field from the comments form.

After you install and activate WPCode Lite, you’ll see the new menu called “Code Snippets”, or simply find the plugin in your Plugins list and click on “Code Snippets”

WPCode Lite "Code Snippets"

Click the “+ Add Snippet” and you’ll see a library of pre-made snippets. They are separated in categories. What we need now is the “Comments” category.

Remove Website Field from the Comment Form with WPCode Lite

You’ll see the snippet called “Disable Comment Form Website URL“. Now we just need to activate it and set some additional rules.

To use this free snippet you’ll need to register a free account and connect to the library. This takes just a few seconds and a simple registration form.

By default, the snippet will run everywhere. Since it only applies to the comments form on the post pages, we can change the location to Page-Specific.

I choose “Insert After Post” and it works as expected for me.

This is it!

Check your Comment form now in incognito mode (or make sure you are logged out) to see if it works as it should.

Download WPCode

Bottom Line

Removing unnecessary form fields slashes an easy spam entry point without negatively impacting the user experience for real commenters. By leveraging a plugin like WPCode Lite, you can craft an optimized comment form that welcomes engagement while blocking a major flow of spam. Keep your discussions on track and your site’s reputation strong through these simple spam-prevention tactics.

Let me know if you need any other tips for fighting comment spam or optimizing the user experience on your WordPress site. Reducing friction for genuine users while complicating things for bots is key.

Disclosure: Some of the links on the page may contain a ref code (affiliate links), that tells the other side that we have sent you. If you liked what we suggest and you make a purchase, we may receive a commission.

Daniel Adamo
Daniel is a content creator specializing in WordPress themes and plugins. He writes in-depth guides and tutorials to help both beginners and professionals get the most out of WordPress. In his spare time, Daniel acts as a volunteer for nonprofit organizations. He believes open source platforms like WordPress are important tools for empowering causes and communities around the world.