Stop the comment form from handing out backlinks
Disable Comment URLs removes the "Website" field from comments, drops the link from every author name, and stops any new comment from storing a URL at all.
- No Website field on the comment form, for classic or block themes.
- Author names on published comments show as plain text.
- New comments never save a URL to the database.
- The comment itself and its author's name stay untouched.
Comment form
Published comment
What does Disable Comment URLs do?
When the disable_comment_urls module is active, TOWP_Disable_Comment_Urls removes the "url" entry from WordPress's default comment form fields, so the Website field never appears. On already-published comments, it filters get_comment_author_link for classic themes and intercepts the rendered output of the core/comment-author-name block for block themes, in both cases showing the author's name as plain text instead of a link. A pre_comment_author_url filter clears the submitted URL before a new comment is saved, so no address reaches the database going forward.
The Website field exists for the commenter, not the visitor
A field that turns any name into a clickable link is exactly the incentive automated comment spam is built around.
It's a major source of spam
A field that turns a name into a clickable link to any URL is exactly what automated spam exists to exploit, since the field's whole appeal is the backlink it produces.
Every approved comment becomes an outbound link
Once a comment is approved, its author's name links out to a site nobody on the team has actually reviewed, on every page that comment appears.
Remove the field, not just the temptation
The module removes the Website field everywhere it could appear, and stops storing a URL at all going forward.
No field to fill in
The Website field is removed from the comment form entirely, so there's nothing there to invite a backlink in the first place.
No link on existing comments either
Author names on comments already published stop being links, working correctly whether the theme is classic or block-based.
Nothing new gets stored
Even if a URL somehow reaches the submission, it gets cleared before the comment is saved, so new comments never store an address.
A small module, covering every path
Every capability below is present in the supplied PHP class and its settings registration.
The Website field never appears
Removed directly from WordPress's default comment form fields, rather than hidden with CSS.
Author names as plain text
The get_comment_author_link filter returns the escaped author name only, with no anchor tag at all.
The FSE comment block, handled too
The core/comment-author-name block renders its link directly, without going through the classic filter, so its output gets intercepted and stripped separately.
URL cleared before saving
pre_comment_author_url returns an empty string unconditionally, so a submitted URL never reaches the comments table for a new comment.
Only the URL, nothing else
The comment text and the author's name are both left completely untouched; only the website link is affected.
Both rendering paths at once
Classic PHP templates and block-based FSE themes are both covered, so the fix applies regardless of which the active theme uses.
Where removing the field helps most
The module supports any site tired of spam built around a free backlink.
Sites fighting comment spam
Remove the single biggest incentive for automated comment spam, since there's no longer a backlink to gain from submitting one.
Avoiding unvetted outbound links
Keep approved comments from silently linking out to sites nobody on the team has actually reviewed.
Simpler comment forms
Present a shorter, more focused comment form without a field most visitors never needed anyway.
Fewer incentives to spam, nothing else changed
The module removes exactly one thing, thoroughly, without touching anything else about comments.
Four filters, nothing heavier
The verified implementation adds a handful of lightweight callbacks and nothing else.
Four lightweight filters
The module registers four simple filter callbacks, adding negligible overhead to comment form rendering and comment display.
No database changes on activation
Enabling the module doesn't touch any existing comment data; it only affects how new submissions are handled and how links render going forward.
No extra queries
Every filter operates on data WordPress already has in hand, whether that's the comment fields array or the comment object being rendered.
Escaped output, unconditional clearing
The code escapes what it displays and clears the URL field without exceptions.
Escaped output
The author name shown in place of the link passes through esc_html() before being returned.
Unconditional URL clearing
pre_comment_author_url always returns an empty string, with no condition that could be bypassed to let a URL through.
No admin configuration surface
With nothing beyond a single toggle, there's no additional input to validate or secure.
Doesn't touch comment moderation
The module changes what's displayed and stored for the URL field only; comment approval, spam checks and moderation all continue to work exactly as before.
Built around native WordPress comment hooks
The supplied code integrates through APIs present in WordPress core. No compatibility claim beyond the verified implementation is assumed.
get_comment_author_link filter
The standard WordPress filter for the author name link, used by classic PHP-based themes.
core/comment-author-name block
Handled through render_block_core/comment-author-name, since FSE themes render this block's link directly rather than through the classic filter.
comment_form_default_fields
The same filter WordPress itself expects plugins to use for adding or removing default comment form fields.
TheOneWP versus common alternatives
Compare the verified Disable Comment URLs implementation with a typical CSS-only fix.
| Capability | TheOneWP Disable Comment URLs | Other common solutions |
|---|---|---|
| Removing the Website field | Removed from the actual fields array | Often just hidden with CSS, still present in the HTML |
| Existing comment links | Stripped for both classic and block themes | Frequently only covers classic themes |
| New comment submissions | URL cleared before it's ever saved | May only affect display, leaving the URL stored anyway |
| Comment content | Left completely untouched | Not typically a separate concern to begin with |
| Administration | One toggle, nothing else to configure | Usually the same, when available at all |
Remove the field in four steps
There's little to configure beyond confirming the change took effect.
Enable Disable Comment URLs
Activate the module from the TheOneWP settings; there's nothing else to configure.
Check the comment form
Confirm the Website field no longer appears on a post with comments open.
Check existing comments
Look at a page with already-published comments to confirm author names display as plain text.
Leave it on
Since there's no ongoing configuration, the module simply keeps working once enabled.
Enable it and let it work quietly
A single-purpose module needs very little upkeep once it's on.
Enable it early on a new site
Turning it on before comments start coming in avoids ever storing a URL in the first place.
Don't expect it to remove existing spam
The module changes how new and existing comments handle the URL field; it doesn't retroactively delete or moderate comments that are already spam.
Pair it with normal comment moderation
This module removes one incentive for spam; it isn't a replacement for reviewing and approving comments.
Check both a classic and block theme if switching
If the site's theme changes from classic to block-based, or vice versa, confirm author links still render as plain text.
Avoid assumptions that overstate its scope
The module does one thing precisely, and it's easy to expect a bit more from it than it does.
Expecting old stored URLs to disappear
The module stops new URLs from being saved and stops existing ones from being linked; it doesn't delete a URL already stored for a past comment.
Assuming this changes comment moderation
Spam filtering, approval and comment moderation continue exactly as before; this module only affects the Website field and its link.
Looking for a setting that isn't there
The module is a single toggle by design; there's no further configuration screen to look for.
Disable Comment URLs FAQ
These answers come directly from the verified class and its settings registration.
What does Disable Comment URLs do?
It removes the Website field from the comment form, removes the link from author names on comments already published, and stops any new comment from storing a URL at all.
Does this delete URLs already stored from past comments?
No. It stops a link from rendering and stops a new URL from being saved; a URL already stored in the database for a past comment stays there, just unlinked.
Does this work with block themes, not just classic ones?
Yes. The core/comment-author-name block used in Full Site Editing themes gets handled separately from the classic comment_author_link filter.
Does this affect the comment text or the author's name itself?
No. Only the Website URL and its link are affected; the comment content and the displayed author name stay exactly as submitted.
Are there any settings beyond turning the module on?
No. It's a single toggle with no additional configuration.
Does removing the Website field reduce spam?
It removes one of the field's main incentives, since a backlink is often the entire point of an automated spam comment, though it isn't the only anti-spam measure a site might use.
Will visitors still see a "Website" label anywhere?
No. The field is removed from the comment form's default fields array, so it never renders at all.
Does this affect comment moderation or spam filtering?
No. Comment approval and any spam-checking plugin continue to work exactly as they did before.
What happens if someone still submits a URL through some other means?
The pre_comment_author_url filter clears it unconditionally before the comment is saved, so it's never stored regardless of how it was submitted.
Does this module require any setup after enabling it?
No. Enabling it is the entire configuration; there's nothing further to adjust.
Stop handing out backlinks through your comments.Remove the incentive entirely.
Use Disable Comment URLs to remove the Website field, strip existing author links, and stop new comments from storing a URL.


Great post, thanks for sharing!