• Hi,

    We need to be able to block the sending of messages via Contact Form 7 IF there are hyperlinks in them.

    We’re being hammered with incoming spam from our forms, that includes hyperlinks to porn/malware websites in the comments.

    Ideally I’d prefer that IF someone puts / in a “comments” field (text area), that the message will not send.

    If that’s not possible, at least not allow the / to be input (used to use ajax control toolkit to do that on our asp.net websites).

    Thanks in advance for your assistance with this.

    p.s. already using akismet, the honeypot, recaptcha v3 to no avail.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter optricsdavid

    (@optricsdavid)

    Hi, wondering if anyone has suggestions. With akismet, the honeypot and recaptcha v3 we’re down to only a couple spam a day.

    I’d LOVE to be able to get rid of those as well. The ONLY common thing in all of them is a hyperlink.

    In asp.net I’d just prohibit / in the comments.

    I think it would be a great feature to add anyway. Ability to block certain symbols – then we could block things like these, which can be malicious: <>/;

    Example pic:
    screen cap

    I used the JQ Validation for Contact Form pro, then I found the class for letters_space in the jquery validation js file and edited like this.
    /^[a-zA-Z .’,0-9/\n/]

    I added a period, apostrophe, comma and 0-9 to the current code. I just wanted to keep out ? < > ( ) to keep out malicious code but allow new line returns and the above. I think this actually allows the slash ‘/’ but anytime I edit it, it messes up the other stuff.

    Thread Starter optricsdavid

    (@optricsdavid)

    Thanks for the suggestion. Is that “editing the js file” something that will get overwritten with the next Contact Form 7 update?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block Hyperlinks’ is closed to new replies.