WordPress.org

Make WordPress Core

Opened 11 months ago

Last modified 4 months ago

#47926 new feature request

Disable website field in comment section

Reported by: longman2020 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords:
Focuses: Cc:

Description

Hi,
Please make it possible to hide website field in comment section.
It is not useful at all. Just spammers post fake comments for link building.
I know It can be hide via css code, but not all users know how to do that.
And I noticed that the css code for hiding this field may not be the same for all themes.
Thanks a lot

Change History (11)

#1 @mukesh27
11 months ago

  • Component changed from General to Comments

#2 follow-up: @SergeyBiryukov
11 months ago

Hi @longman2020, welcome to WordPress Trac!

There are several ways to remove the URL field from comment form:

  • Using a code snippet like this in a child theme:
    function wp47926_remove_url_from_comments( $fields ) {
    	unset( $fields['url'] );
    	return $fields;
    }
    add_filter( 'comment_form_default_fields', 'wp47926_remove_url_from_comments' );
    
  • Or using any plugin that offers a similar function:
Last edited 11 months ago by SergeyBiryukov (previous) (diff)

#3 in reply to: ↑ 2 @longman2020
11 months ago

Replying to SergeyBiryukov:

Hi @longman2020, welcome to WordPress Trac!

There are several ways to remove the URL field from comment form:

  • Using a code snipped like this in a child theme:
    function wp47926_remove_url_from_comments( $fields ) {
    	unset( $fields['url'] );
    	return $fields;
    }
    add_filter( 'comment_form_default_fields', 'wp47926_remove_url_from_comments' );
    
  • Or using any plugin that offers a similar function:

Hi,
Thank you
But most of these kind of plugins are not compatible with every theme.

And everyone is not able to code.

The feature I requested is fine and easy for even novice users.

Last edited 11 months ago by longman2020 (previous) (diff)

#4 @SergeyBiryukov
11 months ago

If the theme does not use comment_form(), then a core option would not work for it either.

If it does, then a plugin should work.

There are other, more effective ways to fight spam, like the Akismet plugin.

Adding a new option here would go against the Decisions, not Options philosophy of WordPress, so this seems like plugin territory to me. That said, I'm keeping the ticket open for now, let's wait for more opinions.

#5 @longman2020
11 months ago

If the theme does not use comment_form(), I think that's the theme problem not wordpress core.

Yes that's true and I know that we can fight spams with many ways, but what I meant was real users who just write fake comments to fill the website field for building links, not robots.
Akismet and other spam fighters block robots not real users.

Fake comments reduces the quality of articles and all the website.
Also most of the links are low quality websites with low domain authority, which is even bad for SEO.

If it will be eliminated, the user who wants to write a fake comment in order to get links, will leave the site, when he/she sees that there is no website field.

#6 @longman2020
11 months ago

When it is implemented into the core, the developers will have to adapt their themes with the new future.

#7 @longman2020
11 months ago

Here that we are talking about this topic, we are all experienced users and it's very easy for us to remove it.
But please think of amateur ones and the fake comments that are posted just for getting links.

For example someone writes an article. then these are most of the comments that she/he gets:

Thank you for your great post.
Excellent post.
Great job.

Just to get a free backlink.

Although I myself use a css code to remove it and have no problem anymore, but these kind of comments are really annoying and we should fight with it and let everyone remove this field easily to fight spam if he/she wants.

#8 @SergeyBiryukov
4 months ago

#49529 was marked as a duplicate.

#9 follow-up: @ttodua
4 months ago

There is no thought that the field should be removed by default, or at least, in native settings page, there was ON/OFF option for that (default- OFF).

I really don't understand why this is not done, or what are contr-arguments.
Having that field at all, is just 98% drawback because of attracting spam and has no use in real-world.

and the custom-coding should not be needed, not all people are developers.

That's why i dont agree with WP's "decisions instead of options" dictature, when those decisions are made upon specific peoples opinion.

On all sites daily we have to delete the spammed comments, which are not even caught by spam-filtering plugins, because people just comment:

"Nice article, I had similar problem <link to X site>.."

and as in https://core.trac.wordpress.org/ticket/49529 , i even suggested to replace links from comment texts too, to totally eliminate any spamming reason, like this: https://jsfiddle.net/5gm3Lsu8/1/

Last edited 4 months ago by ttodua (previous) (diff)

#10 in reply to: ↑ 9 ; follow-up: @longman2020
4 months ago

Replying to ttodua:

There is no thought that the field should be removed by default, or at least, in native settings page, there was ON/OFF option for that (default- OFF).

I really don't understand why this is not done, or what are contr-arguments.
Having that field at all, is just 98% drawback because of attracting spam and has no use in real-world.

and the custom-coding should not be needed, not all people are developers.

That's why i dont agree with WP's "decisions instead of options" dictature, when those decisions are made upon specific peoples opinion.

On all sites daily we have to delete the spammed comments, which are not even caught by spam-filtering plugins, because people just comment:

"Nice article, I had similar problem <link to X site>.."

and as in https://core.trac.wordpress.org/ticket/49529 , i even suggested to replace links from comment texts too, to totally eliminate any spamming reason.

I completely agree with you.

It's very useless and annoying.

Even google has declared that links in comment forms are not counted anymore, but I don't know why so many people spam yet in 2020.

I hope the WP team make a decision to eliminate this field or at least make it optional in settings.

#11 in reply to: ↑ 10 @ttodua
4 months ago

Replying to longman2020:

The problem is that spammers still have reason to spam, because it's not easy for GOOGLE to differentiate the "comments" in html scructure, because comments may be shown in different tags or elements of site, so spammers still have some chance that their links (if approved comment) will have a backlink. and any backlink has "some" (call it tiny, but still) value.

so, the aim is to totally eliminate the existence of backlinks.

Note: See TracTickets for help on using tickets.