Rimuovi il campo Sito Web dal modulo dei commenti per STOP allo spam (Metodo facile)

Disabilita l'URL del sito web del modulo commenti

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 “websitefield is included by default on WordPress comment forms. Sfortunatamente, 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 SPAMwas a popular method for bots to insert backlinks to shady websites back in the day. però, 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 Footersand 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 Snippetand you’ll see a library of pre-made snippets. They are separated in categories. What we need now is the “Commentscategory.

Remove Website Field from the Comment Form with WPCode Lite

You’ll see the snippet calledDisabilita l'URL del sito web del modulo commenti. 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.

Per impostazione predefinita, 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 Postand 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

Linea di fondo

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.

Divulgazione: Alcuni dei collegamenti nella pagina possono contenere un codice di riferimento (link di affiliazione), che dice all'altra parte che ti abbiamo mandato. Se ti è piaciuto quello che ti suggeriamo e fai un acquisto, potremmo ricevere una commissione.

Daniele Adamo
Daniel è un creatore di contenuti specializzato in temi e plugin WordPress. Scrive guide e tutorial approfonditi per aiutare sia i principianti che i professionisti a ottenere il massimo da WordPress. Nel suo tempo libero, Daniel funge da volontario per organizzazioni senza scopo di lucro. Crede che le piattaforme open source come WordPress siano strumenti importanti per dare potere a cause e comunità in tutto il mondo.