This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

Interceptor\IPBlocking

If you do not want to use Captcha for your form, you can use this class to control how often the form is allowed to be submitted by a single IP address or in total.

Version added

1.0.0

TypoScript path

plugin.Tx_Formhandler.settings.initInterceptors.x copy to clipboard

Properties

.redirectPage

Page ID or URL to redirect to. If a user is blocked from submiting the form, he gets redirected to this page.

Data type

Integer | String | cObj

Version added

1.0.0

.correctRedirectUrl

Replaces  '&' with '&' in URL

Data type

Boolean | cObj

Version added

1.0.0

.additionalParams

Adds additional parameters to the redirect URL. Each parameter can be a string or a TypoScript object.

Data type

Array

Version added

1.0.0

.headerStatusCode

Set a custom header code set when redirecting to another page.

Data type

String | cObj

Default value

307 Temporary Redirect

Version added

1.3.0

.report

If a user gets blocked from submitting the form, a report email is sent to the configured recipient.

Data type

Array

Version added

1.0.0

.report.email

Comma separated list of recipients.

Data type

String | cObj

Version added

1.0.0

.report.subject

Subject of the report mail

Data type

String | cObj

Version added

1.0.0

.report.sender

Email address to be set as sender of the report mail.

Data type

String | cObj

Version added

1.0.0

.report.interval

To prevent the recipient of the report mails to get spammed with report mails, you can configure the interval. A report mail will be sent only once during the interval for a single alert.

Data type

Array

Version added

1.0.0

.report.interval.value

Interval value.

Data type

Integer

Version added

1.0.0

.report.interval.unit

Unit of the interval.
The unit can be seconds, minutes, hours, and days

Data type

String

Version added

1.0.0

.ip

Settings for limiting submission for an IP address

Data type

Array

Version added

1.0.0

.ip.threshold

The amount of submissions for an IP address in the given period of time

Data type

Integer - cObj

Version added

1.0.0

.ip.timebase.value

Interval value.

Data type

Integer - cObj

Version added

1.0.0

.ip.timebase.unit

Unit of the interval.
The unit can be seconds, minutes, hours, and days

Data type

String | cObj

Version added

1.0.0

.global

Settings for limiting submissions for a form.

SAME SETTINGS AS FOR IP.

Data type

Array

Version added

1.0.0

.loggers

Same as for the global Loggers.

Data type

Array

Version added

1.0.0

Example code

loggers {
  1.class = Logger\DB
  2.class = LoggerDevLog
}