InfoPhilic How to How to Remove Comment Author URL in WordPress

How to Remove Comment Author URL in WordPress

WordPress comes with a built-in comment system that allows for community interaction around your content. Anyone with a valid Name and Email can leave a comment without verifying their identity.

By default WordPress, comment form has three fields (name, email, and website or URL). When displaying the comments, WordPress automatically hyperlinks the name of the commenter with the website URL they provided. This provides a huge incentive for blackhat SEO guys or newbie bloggers who don’t know any better way to SPAM your site.

This is why removing the URL field from WordPress comment form is always beneficial. Doing this greatly reduce the number of spam comments.

What about existing comment author URLs?

The answer is to remove all unwanted links, including no follow links.


How to remove all existing comment author URLs?


No doubt, there are plugins available to perform this task. But, I will recommend doing it manually via phpMyAdmin. It’s easy and non-hectic.

  • Go to your phpMyAdmin or any SQL administration tool that allow you to run queries to your database.
  • Select your WordPress installation’s database.
  • Go to “SQL” tab.
  • Enter any of the following queries.
  • If your table prefix is not “wp_”, change it accordingly.

Deleting all existing comment author URLs in WordPress
Deleting all existing comment author URLs in WordPress

To delete all comment URLs :

UPDATE wp_comments SET comment_author_url = '';

In above query, I have set the URL value to empty. So no worries about losing your comment.

To delete ALL comment URLs EXCEPT a certain link:

UPDATE wp_comments SET comment_author_url = '' WHERE NOT comment_author_url = '';

This query will avoid deleting URL of those comments made by yourself.

Once you have done the activation, this plugin will remove comment author URL in your WordPress theme’s comments template.


I hope this guide helps you best in reducing spam on your site. You might like to read my another guide on ways to stop spam comments on WordPress Blog.

How do you deal with manually submitted spam comments on your site? What are your thoughts on removing the website URL field?

Amit Malewar
Amit Malewar has been the tutorial writer since 2013. His passion for helping people in all aspects of technology flow through the expert coverage he provides. In addition to writing for InfoPhilic, Amit loves to read and try new things.

Comment Policy: Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.


  1. Kindly help me on the author archive url.

    It’s showing the username instead of display name or nickname. Pretty weird.

    For example:[email protected]$

    I want to display it as: display name or nickname

    Don’t know what is causing the issue? Tried disabling all plugins as well.


Please enter your comment!
Please enter your name here

Join InfoPhilic Community!

Let's build a community (Facebook Group) to help & encourage each other to grow!


Get almost 100% PageSpeed on Newspaper theme

The newspaper theme is the most popular premium theme for a self-hosted WordPress blog. The theme is developed by team tagDiv. You...

How to Remove jQuery Migrate in WordPress?

Learn how to remove jQuery Migrate from your WordPress site.

How to Delete Multiple Images in WordPress Media Gallery

Hey, guys today one of my friends asked me a question, How can I delete Multiple Images in WordPress? I replied, "It's very simple." Yeah,...

How to Fix Failed to Open Stream Error in WordPress

When WordPress.Org releases a new update to it’s WordPress standalone CMS (Content Management System) for that you may have set your website to get...

How to Display Featured Image Before or After Entry Title in Genesis

Learn how to add featured images to a single post or a page in Genesis child themes. You can set it to...


Start your blog or website with Dreamhost

Learn how to start your WordPress blog with Dreamhost hosting. Discover the steps it takes to create a blog in 2020.

Start WordPress Blog: Ultimate Guide For Beginners

Here is our step by step guide for beginners to start a WordPress blog.

Top 6 Best WordPress Theme Frameworks

There are many websites themes which are created by using a framework. Likewise, WordPress Theme frameworks also becoming so popular. The framework allows you...

The Most Essential WordPress Plugins

Here, I have listed some excellent plugins which will surely add more features and new functionality to your WordPress blog.

Tips to Speed Up WordPress Performance

Here, I am sharing some tips to speed up WordPress performance. All you need to modify .htaccess file on your server and add some plugins.

The Ultimate Guide to Harden WordPress Security

Learn how to improve WordPress security. Here are some basic security concepts that will help you to harden WordPress security.

How to Setup CloudFlare Free SSL for WordPress Blog

Google has announced that they will count HTTPS as a ranking factor which means if you using HTTPS you will get a higher position...


Kinsta Hosting

Highly optimized servers for lightning-fast sites. High-security environment hack-fix guarantee. WordPress support experts at your fingertips. GRAB THIS DEAL