# Mark any form text containing any period concatenation

**URL:** <https://community.gravityforms.com/t/mark-any-form-text-containing-any-period-concatenation/13327>\
**Category:** Get Help\
**Tags:** gform\_field\_validation, gform\_entry\_is\_spam, spam\
**Created:** [August 29, 2022, 7:13pm UTC](https://community.gravityforms.com/t/mark-any-form-text-containing-any-period-concatenation/13327 "2022-08-29T19:13:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle88](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@kyle88](https://community.gravityforms.com/u/kyle88)\
**Post date:** [August 29, 2022, 7:13pm UTC](https://community.gravityforms.com/t/mark-any-form-text-containing-any-period-concatenation/13327/1 "2022-08-29T19:13:20Z")

</div>

Hi everyone,

I need to block any form message containing a period in between two strings, for example “bul.tc, [blah.com](http://blah.com), [this.net](http://this.net)”. I’m getting extremely inappropriate spam submissions containing out of the ordinary domain TLD extensions (.tc, .ally, .am). I think blocking anything text with period in between any two strings would be the best solution.

I am already blocking form submissions that contain http and https, however these spam submissions are not including http:// or https://, so blocking http/https is not sufficient. I would need to block anything with a period in-between two strings.

Upon my research, it looks like I need to add a block of code into the functions.php file. Could anyone provide me with a template I can work with? I’m relatively new to regex, so any guidance would be very much appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [September 28, 2022, 7:13pm UTC](https://community.gravityforms.com/t/mark-any-form-text-containing-any-period-concatenation/13327/2 "2022-09-28T19:13:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
