How To Disable “Website” URL field in WordPress comments

Written by: Ahsan Parwez

How To Disable “Website” URL Field In WordPress Comments - hostwp.io

Table of Contents

Getting “Do-Follow” links from good DA(Domain Authority) and high-traffic websites is still considered to be beneficial for your website’s visibility on SERPs.

There are many ways to get a “Do-Follow” link for your website from others through guest posting, earning links on your good content, and collaboration. But there are also some inappropriate ways to get do-follow links, one of which is spam commenting on WordPress websites.

You can view below some Spam comments to know how it looks.

wordpress spam comments 1

You can usually identify the spammers by their names as they do not set their original names on their profiles. Also, you can identify them through their comments as usually, their comments aren’t relevant to your post.

To solve this problem once and for all, the best solution is to remove the “Website” field from your comments section. This will prevent spammers from mentioning their websites in your comment section as do-follow links. 

wordpress comment section

There are many disadvantages of having spam comments on your site as it affects your overall website and its authenticity. Some of the cons are mentioned below:

  • Search engines may penalize your website if it has many spammy or low-quality outbound links in the comments.
  • Spam comments clutter the comments section, making it difficult for genuine users to engage.
  • Some spam comments may contain malicious links or code that can harm your website or its visitors.
  • Visitors who encounter a lot of spam comments may leave your site quickly, increasing your bounce rate.

There are 2 solutions that we are going to cover in this tutorial.

Method 1: Editing the WordPress Files through code

This method can be used if you are very well familiar with editing WordPress files. You just have to follow the steps and insert the code.

Note: Always take a backup before making any changes to the code. I recommend using a child theme to make any changes in the code.  

Navigate to WP Admin -> Appearance -> Theme File Editor and click functions.php. 

wordpress theme file editor

Scroll until the written code’s end and paste the code below. 

add_filter('comment_form_default_fields', 'website_remove');
function website_remove($fields)
{
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}

The above code will help you to remove URL field through creating a function called website_remove(). This is how your comment form will like after you have added the code.

wordpress comment section without website field

If you are unable to see “Theme File Editor” then you can add the code we have mentioned above directly into the functions.php file by accessing your WordPress files via the File Manager through your hosting provider. Talk to the support team of your hosting provider if you do not know how to do it.

Method 2: Removing URL Field through WordPress Plugin

The second method to remove the URL field is with the help of a WordPress plugin. There are many easy-to-use WordPress plugins for this task. 

The simple way is first to install the Comment Link Remove Plugin and Comment Tools or Remove Comment Website/URL Box plugin. 

comment link remove plugin

After successfully installing the plugin, simply activate the plugin to remove the Website field from the comment section.

wordpress comment dashboard

Finally, after activating the plugin, you just have to check the “Remove WEBSITE Field from Comment Form” field and save it to disable the website field in your comment section.

comment link remove plugin dashboard

This method is the most simple method to remove the “Website” URL field from the comments. Whereas there are some people who do not want to add multiple plugins to their site, so they could use the first method by editing the code and removing the website field.

You can also use reCAPTCHA by Google to fight automated spam by distinguishing between human and automated access and avoid bots accessing websites for spamming.

Benefits of disabling the “Website” URL field in WordPress comments

There are some benefits of removing the website field:

  • Reduced Spam Volume: Removing the “Website” field significantly decreases the incentive for spammers to leave comments on your site.
  • Improved User Experience: With fewer spam comments, the comments section remains clean and relevant, making it easier for genuine users to engage.
  • Better SEO: Reducing the number of spammy backlinks in your comments helps maintain the quality of your site’s link profile.
  • Lower Server Load: Fewer spam comments mean less data for your server to process, which can improve your site’s performance and speed
  • Focus on Content Quality: Without the distraction of spam comments, users can focus on the quality of the discussions and the content itself

We hope that you learned something new today in fighting against comment spam. There are dedicated plugins and services that help you fight spam comments, one of them is Akismet, which protects websites against all kinds of spam. 

Written by Ahsan Parwez
Ahsan co-founded HostWP.io. He's passionate about making websites faster, safer, and better at reaching people. He enjoys sharing his knowledge about the web and learning new things.
Read more posts by Ahsan Parwez

Leave the first comment

Migrate your site to HostWP at no cost

Host WordPress with Confidence!
Fast, Secure, Reliable
View Pricing

Related Blogs

Best WordPress Analytics Plugins

The 7 Best WordPress Analytics Plugins in 2026 (Privacy-First Picks Included)

Understanding your website traffic is no longer optional. It is the foundation of every smart business decision you make online. Without accurate analytics, you…

August 19, 2026

Best WordPress Ai Plugins

The 16 Best WordPress AI Plugins in 2026: Beyond Basic Content Generation

Most people think AI plugins are just glorified blog post generators, but the reality in 2026 is far more exciting. Artificial intelligence has quietly…

August 19, 2026

Hosting For Your LMS Website

How to Pick the Right Hosting for Your LMS Website

Most website hosting suggestions are exactly the same. Pick fast servers, get good security, have backups, and you’re done! Those basics are important. But…

August 6, 2026

Expert WordPress Support Engineers Available 24/7

90 sec
Average
Response Time

98 %
Customer
Rating

24/7
Expert
Support

Submit Your Question Here.