Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter eWallz

    (@archonic08)

    will these regex serve my purpose to exclude all request that contains these string within the url?

    to exclude all woocommerce ajax cart request
    {wc-ajax=get_refreshed_fragments}

    to exclude/bypass all api & callback request from paypal payment (specific for paypal only)
    {wc-api=WC_Gateway_Paypal}

    to exclude/bypass any request to woocommerce api (generic)?
    {wc-api}

    really need this because my website got many external request from plugins & external service such as payment gateways, etc. Instead of setting up specific regex for longer url can I just do the above with broader coverage yet still specific to certain strings within the queried url?

    Plugin Author gioni

    (@gioni)

    If you’re asking about the anti-spam exceptions, please read the updated article: https://wpcerber.com/antispam-exception-for-specific-http-request/

    P.S. A bug related to this setting field has been discovered and fixed in v 8.6.3. Install the latest version of WP Cerber cause the bug might affect your configuration.

    Thread Starter eWallz

    (@archonic08)

    hi @gioni thanks for the reply.

    Im refering to the Anti-Spam & Traffic Inpector modules. I just need your confirmation whether i’m using the correct input for whitelisting the query/request below:

    Anti Spam (no regex) – to exclude any query from Paypal payment

    wc-api=WC_Gateway_Paypal

    Traffic Inspector – to whitelist all request of paypal payment

    {wc-api=WC_Gateway_Paypal}

    are the above input for each module correct?

    Plugin Author gioni

    (@gioni)

    In your case you don’t need to use REGEX at all. Plus you forget the slash. Here is what you need to use for the Query whitelist in the Anti-Spam settings.

    /?wc-api=WC_Gateway_Paypal

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Excluding query string with question mark’ is closed to new replies.