Trying to enable Antibot with a Webform, and cannot do it

Install Antibot, Turn it on, Configure 1 form ID (contact_site_form), Check Display Form IDs, Go to Webform settings for webform_client_form_257:, and no place to enable Antibot for the form

Here is the url for the form: https://test.mtryrapecrisis.org/contact

Also, turned javaScript off in Firefox, cleared cache, and form still appears

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork antibot-3208301

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

redthruviolet created an issue. See original summary.

paulocs’s picture

Hi redthruviolet!
I could not reproduce your problem.
Are you sure you are writing the correct webform ID?
I suggest you to enable Display form IDs in /admin/config/user-interface/antibot and check if you are setting the correct webform id.

For example, for the contact form, my webform id is webform_submission_contact_add_form.

anybody’s picture

Can't you simply set

webform_client_form_*
as wildcard in admin/config/system/antibot?

I've created an issue fork to add that to the defaults.

anybody’s picture

Status: Active » Needs review

gaurav.kapoor’s picture

Hi, @Anybody. There isn't any plan to update 7.x-1.x branch further as of now. Did the suggestion in #2 by @paulocs not work for you? Do you still feel we should add 'webform_client_form_*' to default settings?

If anyone can help with testing and working on this in D7, I will push this to 7.x-1.x.

gaurav.kapoor’s picture

Assigned: redthruviolet » Unassigned
anybody’s picture

Thank you @gaurav.kapoor,

well the very simple one-line merge request is already here in this issue:
https://git.drupalcode.org/project/antibot/-/merge_requests/4/diffs

If you test it, you can safely commit it, I guess. It makes things a lot easier for non-tech Drupal users.

gaurav.kapoor’s picture

Status: Needs review » Closed (works as designed)

I also didn't get any issue when enabling Antibot for a particular form using a single form ID or configuring it for all the webforms with 'webform_client_form_*'. Antibot worked fine in both cases.

@Anybody the MR which you have added does add 'webform_client_form_*' to the settings and by default enables it for all the webforms. But the reasons I am not willing to push it to 7.x-1.x are:

1. Users can configure and add webform ID or regex 'webform_client_form_*' if they want to enable Antibot for webforms.
2. I don't want to push anything to the D7 version as we will have to then go for a new release, which might introduce multiple issues. As of now, there is no plan to work on the D7 version.

Marking this as 'Closed (Works as designed)' for now, feel free to reopen the issue if you think we should still keep this open for feedback from other users.