• Resolved allenshaw

    (@allenshaw)


    I have a plugin-provided form which is designed to behave in an unusual way: When the user clicks the submit button for the form, an AJAX call is submitted to the server, and only after that AJAX response is received, the form is actually submitted.

    While I’m able to exempt the form itself from cleantalk processing, using “Form Signs Exclusions”, I’m not easily able to identify a suitable regex to exclude this AJAX call, and it occasionally chokes on cleantalk processing, thus breaking the form.

    FWIW, this AJAX call includes only one array item in the payload, “params”, for which the value is a json-encoded set of data. Setting cleantalk to exclude any form with a data key named “params” seems like it will be overly aggressive, considering that’s a rather generic key name.

    You can probably identify the AJAX call in the behavior of the form linked in this ticket, but I’m happy to provide a .har file as well.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support amagsumov

    (@amagsumov)

    Hello @allenshaw,

    Unfortunately, there is no option to exclude specific AJAX calls. Only the form itself can be excluded from spam checking.

    I’ve analyzed your site’s requests and noticed that some important parameters are not intercepted correctly by the plugin. This might cause the issue. Please do the following:

    1. Update the Anti-Spam plugin by following this guide: https://cleantalk.org/help/update-wordpress
    2. Set the cache update time on the site to no more than 24 hours (it’s important).
    3. WordPress Admin Page → Settings → Security by CleanTalk → General settings → set the “Set cookies” option to “Alternative mechanism” → Save Changes.
    4. Clear the cache.

    Dit it help?

    Thread Starter allenshaw

    (@allenshaw)

    1. I should have mentioned that at present we have the cleantalk plugin disabled on this site, pending resolution of the described issue. Does that explain what you’re seeing when you write “I’ve analyzed your site’s requests and noticed that some important parameters are not intercepted correctly by the plugin”?
    2. In more general terms, i belive that this AJAX call could be excluded if I used a regex matching the key name params in the “Form Signs Exclusions” setting — is that correct?

    Thank you,
    A.

    Plugin Support sergecleantalk

    (@sergecleantalk)

    1. The plugin still seems to be active on this website. Could you check this?
    2. I think it’s possible, but I’m not sure. Could you test the exclusion?
    Thread Starter allenshaw

    (@allenshaw)

    1. You’re right, it was still active. I’ve disabled it.
    2. Adding .*params+ to the Exclusion Signs does exclude this ajax call from cleantalk checking (I’ve test that with s@cleantalk.org)
    3. You mentioned:
      > I’ve analyzed your site’s requests and noticed that some important parameters are not intercepted correctly by the plugin. This might cause the issue. Please do the following:
      > 1. Update the Anti-Spam plugin by following this guide: https://cleantalk.org/help/update-wordpress
      > 2. Set the cache update time on the site to no more than 24 hours (it’s important).
      > 3. WordPress Admin Page → Settings → Security by CleanTalk → General settings → set the “Set cookies” option to “Alternative mechanism” → Save Changes.
      > 4. Clear the cache.

      Can you tell me what problem you observed which those steps would solve?

    Thank you!

    Plugin Support eugenecleantalk

    (@eugenecleantalk)

    >> Can you tell me what problem you observed which those steps would solve?

    Usually, the issue with parameters occurs when the data collected by our plugin is cached. The settings mentioned above help to avoid this.

    Thread Starter allenshaw

    (@allenshaw)

    Got it — thanks! I’ll go ahead and mark this Resolved now.

    Plugin Support eugenecleantalk

    (@eugenecleantalk)

    You’re welcome.

    If you have a moment, could you please leave us a review? We would greatly appreciate it.
    https://wordpress.org/support/plugin/cleantalk-spam-protect/reviews/

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

The topic ‘Exclude ajax requests per url/params’ is closed to new replies.