# Form API submissions being classed as from Bot

**URL:** <https://community.hubspot.com/t/form-api-submissions-being-classed-as-from-bot/66025>\
**Category:** APIs & Integrations\
**Created:** [September 28, 2022, 6:35am UTC](https://community.hubspot.com/t/form-api-submissions-being-classed-as-from-bot/66025 "2022-09-28T06:35:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeyb](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mikeyb](https://community.hubspot.com/u/mikeyb)\
**Post date:** [September 28, 2022, 6:35am UTC](https://community.hubspot.com/t/form-api-submissions-being-classed-as-from-bot/66025/1 "2022-09-28T06:35:33Z")

</div>

Hi, we are in the process of using the Form API to use exisiting website Forms to create/update contacts in to Hubspot. So far so good. But some forms submissions are being idenfitied as “Submission from Bot”

 ![mikeyb_2-1664346289839.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/a/4ae933a0be3c9abaad371e9cb79ff49657fd924e.png)

When looking at the submission details, its makes reference to the IP address not being included or the cookie needed to link form submission to contacts.

 ![mikeyb_1-1664346268780.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b35d31f70a8ea37a3447f70359bb625a828a7327.png)

I’ve noted from documentation that Hubspot uses IP address as one of the signals to determine a bot

I know I can turn of Bot Filtering, but I wonder if it just masks a problem?

Two questions I have:

1. Would the missing of IP address from a form submission be the cause of the “Bot” classification?
2. What does it mean when it says “_The cookie needed to link form submissions to existing contacts isn’t being sent_” - as far as I know we are using the _ **hutk** _ for lead activity tracking?

Thanks in advance

Michael

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [September 28, 2022, 7:23am UTC](https://community.hubspot.com/t/form-api-submissions-being-classed-as-from-bot/66025/2 "2022-09-28T07:23:40Z")

</div>

Hey [@](https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041)[mikeyb](https://community.hubspot.com/t5/user/viewprofilepage/user-id/454535)

There might be a missing cookie variable →

You can try by cross checking the below code snippet →

missing cookie

$hs\_context = array(

**‘hutk’ =\> $hubspotutk, // Add this key**

‘ipAddress’ =\> $ip\_address,

‘pageUrl’ =\> $page\_url,

‘pageName’ =\> $page\_name

);

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![mikeyb](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mikeyb](https://community.hubspot.com/u/mikeyb)\
**Post date:** [September 29, 2022, 3:49am UTC](https://community.hubspot.com/t/form-api-submissions-being-classed-as-from-bot/66025/3 "2022-09-29T03:49:18Z")

</div>

Thanks ChehakWadhdwa,

Have added IP and hutk to the context data, and still getting listed as Bot submissions.

Is there anything I can do, beside switch off Bot Filtering?

 ![mikeyb_1-1664423300211.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/4/4417f53f556cb46b0d542e6b27b99a88cabd5ab2.png)

Thanks

Michael

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [September 29, 2022, 7:19am UTC](https://community.hubspot.com/t/form-api-submissions-being-classed-as-from-bot/66025/4 "2022-09-29T07:19:31Z")

</div>

Hey [@](https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041)[mikeyb](https://community.hubspot.com/t5/user/viewprofilepage/user-id/454535)

Kindly check the below link-\>

you can enable re captcha, this might be helpful

> **[Prevent and filter spam in form submissions](https://knowledge.hubspot.com/forms/prevent-spam-form-submissions)**
>
> Learn how to provide additional protection against spam form submissions by turning on CAPTCHA and blocking specific email domains or free email providers.

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.
