Edit comment form of your WordPress blog to remove website text box

Edit comment form of your WordPress blog and remove website text box to avoid spamming:

When you are running a website or blog which is self hosted wordpress or even if it is free wordpress.com blog then you might have face many comments from spammers to make Backlink from your website also to advertise their site on your blog through a easiest way and that way is commenting on your website. Therefore we have to remove comment from the wordpress comment form.

Usually we all knows very well how to avoid spamming from wordpress comment is to use a popular wordpress plug-in named  akismet– http://akismet.com/

But this plugins cant avoid all spammers because nowadays spammer becoming more and more intelligent and they are breaking akismet criteria of spam and still creating your blog/website with spam.

Normally the structure of any wordpress default comment form is like shown in figure :

It mainly contains 4 text boxes as follows :

1) Name


3)Website (This is one who responsible for spam)



so it will be much better if we remove website text box from the comment for just by editing the comment form in the wordpress.

Now procedure to do so:


Goto  admin panel and click on appearance>> then select editor.



Under  editor select (comments.php) to edit.


step 3:


Remove this code from that php thats it now save the file by clicking on update file:



<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
 <label for="url"><small>Website</small></label></p>



now see the comment form this is antispam 🙂

So in this way you can easily control spamming by comment on your wordpress self hosted site or even with free wordpress blog.

Join Our Newsletter

Join over 5,000 people who get free and fresh content delivered automatically each time we publish.

About Tushar Thakur

Tushar is founder of Xtendedview. He love to experiments on different gadgets, software/apps. He is professional blogger and Internet marketer. He is Interested in electronics and computers, Internet technology, Search Engine Optimization, Internet Marketing. Running online business and Blogs

Tushar has written 225 awesome articles for us.


  1. I cannot locate the code plz help me.

  2. Great! Thanks for the share!

  3. A good many vualaebls you’ve given me.

  4. Howdy very nice web site!! Man .. Beautiful .. Amazing .. I will bookmark your website and take the feeds additionally…I’m satisfied to find so many helpful info here in the submit, we need work out extra strategies on this regard, thanks for sharing.

  5. I noticed that even with Akismet in place some spammers still find a way. Quite frustrating sometimes, By removing that field I will use their comments as fresh content lol.

Previous Post:
Next Post: