FormProtectionMethod

FormProtectionMethod

is an option for form generation functions that specifies what method to use for protecting the form against spam and other undesired submissions.

Details

  • Possible settings include:
  • Automaticdefault, nonobtrusive protection
    Noneno protection
    "HiddenFieldHoneypot"a "honeypot" field invisible to humans but likely to be filled in by automatic bots
  • Currently, the default setting Automatic is equivalent to "HiddenFieldHoneypot".

Examples

Basic Examples  (2)

Create a new form function:

Deploy it to the Wolfram Cloud:

If the correct form function field parameters are used, the request returns a normal 200 status code ("OK"):

Automated form bots will fill every form parameter, including a "honeypot" parameter. When this happens, the Wolfram Cloud returns the 429 status code ("Too many requests"):

You can deploy a form without a protection method:

Since there is no "honeypot", a bot would only find and use the "name" parameter and the request succeeds:

Wolfram Research (2021), FormProtectionMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/FormProtectionMethod.html.

Text

Wolfram Research (2021), FormProtectionMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/FormProtectionMethod.html.

CMS

Wolfram Language. 2021. "FormProtectionMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FormProtectionMethod.html.

APA

Wolfram Language. (2021). FormProtectionMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FormProtectionMethod.html

BibTeX

@misc{reference.wolfram_2024_formprotectionmethod, author="Wolfram Research", title="{FormProtectionMethod}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/FormProtectionMethod.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_formprotectionmethod, organization={Wolfram Research}, title={FormProtectionMethod}, year={2021}, url={https://reference.wolfram.com/language/ref/FormProtectionMethod.html}, note=[Accessed: 22-November-2024 ]}