The decision about comment status upon posting is made by wp_allow_comment()
function.
There is a filter in it that can be used to change it accordingly. Basic form would look something like this (not tested):
add_filter( 'pre_comment_approved', function( $approved, $commentdata ) {
if ( ! empty( $commentdata['comment_author_url'] ) ) {
return 'spam';
}
return $approved;
}, 10, 2 );
This probably needs to be refined though, since it will probably interfere with users registered on site, who have URL set in profile.
Related Posts:
- Why do I get comment spam even with Akismet and Captcha?
- Removing the “Website” Field from Comments and Replies?
- How do we remove the H3 tag for the reply-title I.D
- How to deal with small scale comment spam on small commercial sites? [closed]
- What’s the easiest way to close comments on media/attachments?
- How to remove comment spam in WordPress
- How is comment spam received without a comments form?
- Success message in comment form
- Allow anonymous comments, but prevent spam [closed]
- Using filter to add additional fields to comment_form()
- Is there any advantage to emptying comment spam?
- Why do I get email notifications about comments that WordPress has already determined are spam?
- Number of External Links in Comments – Moderation Option
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- How to add a div on comment fields / edited
- Strategies for coping with hyperagressive spambots?
- How to modify comments form using comment_form()?
- How can I automatically delete comments that contain chinese / russian signs?
- Comments view limited to 20 results – any way to increase to 50 or 100?
- Comment form problem with comment_author_url and HTML5 input placeholders
- Report spam button
- stackexchange-like submit comment window
- Bots posting comments on pages
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- How to make a secure blog that is completely private?
- WordPress custom form action url
- Auto delete comment if Contains
- All users/comments suspected as bot? [closed]
- After Submitting Comment Form Shows an Empy Page in WordPress
- How to override wp_insert_comment()
- Safely editing core files
- How to block comments and pings?
- Disable only the comment form/box itself?
- Batch approve comments
- reCaptcha doesnt appear in comment (manual or plugin)
- Make every comment go to the spam folder
- How to hide wordpress post comment form for specific role
- Anonymous spam comments when only registered users can comment
- Copy and Paste Password for Comments
- How t Remove Labels from comment Box
- comment form code redirect to wp_comments_post.php with blank page
- Need to output comment_form() function inside a foreach loop
- How add custom text under comment form
- Delete comments function
- Comment moderation
- Auto-deleting comments that trigger the blacklist
- approve,spam,trash etc. options are not coming on comments in admin panel
- Image Upload Form is Disabling Comment Addition
- Comment submission & navigation redirects to default language
- Reply to a specific comment?
- comments are going to spam
- How to hide the login / profile urls on top of comment box for a post
- How to hide and disable URL and email fields from comments?
- How to remove website url field from comment form completely?
- How do I comment out a block of tags in XML?
- R: Comment out block of code
- What tools are available for managing/writing to WordPress? [closed]
- How to rearrange fields in comment_form()
- setting comments off as default for pages and custom post types?
- how to reduce the number of spam comments
- Is it possible to pull comments from facebook into your blog?
- Filtering the Admin Comments List to Show Only Comments from the Current User?
- Non-threaded comment replies with link to original comment
- Approve comment hook?
- Commenting in user profile page?
- How to change “You must be logged in to post a comment.”
- comment_post_ID 0 (cannot remove from dashboard)
- Disable comments on all posts/pages
- How do I delete all comments from a specific old blog post?
- Stop WordPress redirecting comment-page-1 to the post page?
- Importing old Disqus comments into WordPress
- How to add a class to the comment submit button?
- How to wrap submit button of comment form with div
- How to enable comments for pending and draft posts?
- Using WordPress’ WYSIWYG for comments
- Enable Submit Comment Without Page Reload (Using Ajax)?
- What for is the table “wp_commentmeta” exactly?
- Experiences with adding Nonces to the comment form
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Add option to disable comments on a per posts basis?
- Resetting comment count
- When importing – failed to import: Invalid post type feedback
- How to change the email notification recipient (user) for new comments?
- Redirect user to a custom url after submitting the comment
- Paginate result set from $wpdb->get_results()
- Style reply form different than comment form
- Change Comment Author Display Name
- Would switching to InnoDB from MyISAM improve performance of comments table?
- Custom comment type based on thread level
- How to add internal, revision comments to page updates
- How to load and show comments with AJAX instead of pagination?
- Linking to Page Showing Only Comments Without Parent Post
- Comment Reply javascript
- Comments not appearing at all
- comments reply script not working
- How to display comment form error messages in the same page
- 3 moderators to approve comment
- What should I do to make generated avatars different for anonymous comments?
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Check If comment author is registered