• Hi,

    I just discovered your plugin and it sounded very good. So I wanted to give it a shot and test it on my local environment. I did the setup and changed the honeypot field names in the plugin settings to some custom names which are not present in the actual form. But there are no honeypot field generated in the form. If I inspect the HTML of the page I do not see them.

    What did I wrong? Do I have to place this fields with the correct names in CF7 manually? Please provide some help and clarification on that.

    Cheers,
    Robert

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Erik

    (@codekraft)

    Hi Robert,

    First of all, thank you for trying the plugin — and sorry if the instructions weren’t very clear!

    To clarify: in the honeypot field settings, you should enter names that are not used in your actual form. For example, if your Contact Form 7 form uses a field named your-name for the user’s name, then you might want to use something like name as a honeypot field instead. This is because bots often look for generic field names like name, email, or phone.

    You don’t need to manually add these honeypot fields to your CF7 form — the plugin will automatically insert them into the form output. If everything is working correctly, you should see the honeypot fields appear next to the visible input fields when you inspect the HTML of the form (like below).

    Let me know if you still don’t see them or if something seems off — I’ll be happy to take a closer look, but please provide the cf7 version, the cf7-antispam version and the form content.

    Cheers,
    Erik

    • This reply was modified 3 months, 3 weeks ago by Erik.
    Thread Starter WORX Developer

    (@developeratworx)

    Hi Erik,

    thank you for the reply. OK, thanks for the confirmation. I added field names like confirm-name in the plugins honeypot settings. These field names are NOT used inside the form. But no fields with the used names are in the markup. Instead I found the fields ship-address and zip.

    So to me it seems that some random names are used but not the ones I defined.

    I use Contact Form 7 – Version 6.1 and AntiSpam for Contact Form 7 – Version 0.6.4.
    Switching to the Twenty Twenty-Five theme doesn’t help. So it shouldn’t be an issue with my theme.

    Cheers,
    Robert

    Thread Starter WORX Developer

    (@developeratworx)

    Hi Erik,

    do you happen to have any feedback for me regarding this behavior?

    Cheers,
    Robert

    Plugin Author Erik

    (@codekraft)

    Hi Robert,

    I’ve checked and can confirm that the problem you’re describing is real — but I haven’t had the chance to dig into the code yet to understand exactly why it’s happening (that’s why I hadn’t replied earlier).

    I’m hoping to have some time over the weekend to look into it and possibly fix a few other updates as well. In the meantime, thank you again for bringing this to my attention — I really appreciate it!

    Cheers,
    Erik

    Plugin Author Erik

    (@codekraft)

    The issue was fixed here https://github.com/wp-blocks/cf7-antispam/pull/120

    @developeratworx asap I will push a new update for the antispam plugin, and again thank you, It is thanks to the community’s contribution that we can create better software

    Thread Starter WORX Developer

    (@developeratworx)

    Hi Erik,

    thanks for your reply. I applied the changes from you commit to the plugins code on my local installation but it seems the problem still exists. I only see two honeypot fields with default names (this time “name” and “town”), but none of the ones I defined in the settings.

    I also checked the field names in the form again, but they all start with “input-…” and therefore differ from the default tag names.

    In addition I tried to disable the checkbox “Einige Fake-Eingaben in das Formular einfügen” to see if something changes but with the option disabled, no honeypot fields are displayed at all.

    Would you like me to move this conversation to Github and we can discuss it further in a separate issue?

    Plugin Author Erik

    (@codekraft)

    Would you like me to move this conversation to Github and we can discuss it further in a separate issue?

    Yep, that would be really cool! This way, we can link the code directly to the issue. I just have one question for you: After updating the code as you did in PR #210, did you save the CF7-Antispam options again?

    This step is crucial because the honeypot names are generated based on those settings. To ensure that default names are available even if the user hasn’t entered any custom ones, I’ve merged the array of user-defined names with a set of standard names (but it was in the reversed “direction” as you noticed).

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.