No urls allowed?

Created on 16 March 2024, 10 months ago
Updated 10 September 2024, 4 months ago

As 95% of my comments are spam ( but we value the legitimate 5%) I have turned comment field to restricted HTML WITH ONLY AN <h3> allowed! This does not stop spammers so was hoping that there was a way to add a check on save that denied save with any comment with “http” in the text and returned a message “we value your feedback but links are not allowed “
This would be such a great feature for sites that simply want comments
Thank you

💬 Support request
Status

Closed: works as designed

Version

9.5

Component
Comment 

Last updated 18 days ago

Created by

🇬🇧United Kingdom artatac

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @artatac
  • Status changed to Postponed: needs info 10 months ago
  • Drupal 9 is not supported.

  • Anti-spam efforts are often discussed in the #support Slack channel. These are typically contributed module solutions.

  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Why not make the comment plain text only? In Drupal 10.1 you can limit the filter formats on the comment body field

  • This issue is not exquisitely well-specified, however, I think that’s what they are saying. Link spam is link spam, whether or not the link is rendered into a tag.

    Since they’re asking for a validator, in fact, all that is needed is a trivial form alter, and a call to str_contains.

  • 🇬🇧United Kingdom artatac

    Thanks for feedback much appreciated

  • Status changed to Closed: works as designed 4 months ago
  • 🇳🇿New Zealand quietone

    @artatac, thanks for responding.

    With no further discussion, this appears to be resolved.

    The Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our support page (Community > Support at the top of Drupal.org) and there is Drupal Slack . You may get better replies in one of those places.

Production build 0.71.5 2024