Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Denholm 2 posts 72 karma points
    May 23, 2021 @ 09:21
    David Denholm
    0

    Block content in forms fields

    I am looking to use regex to block some content being typed on a form we have. Although we have ReCaptcha2 deployed, some bot somewhere is managing to use the name fields in our contact form to insert a large amount of text including a url to some supposedly pornographic link.

    to prevent this I would like to restrict the text length to about 25 characters (should be enough for both first names and hyphenated surnames) and block the following: "http" and "//' I don't want urls in these fields.

    Anyone more experienced that can point me in the right direction?

    thanks

    David

  • Mark Walton 5 posts 75 karma points
    Jul 30, 2021 @ 16:29
    Mark Walton
    0

    I too would like to know how to just block URLs in the text field. Anyone?

Please Sign in or register to post replies

Write your reply to:

Draft