• eguzmana

    (@eguzmana)


    Over the past month, Cloudflare has been logging more than 2,200 daily connections to /wp-json/jetpack/v4/sync/spawn-sync. After checking the Jetpack activity log, it seems these connections are related to sending information about recent posts or post changes.
    I only have two modules active: Sitemaps and Embedded Shortcodes.
    Is there any way to disable this functionality?

    I’ve already tried adding the following code to functions.php, but there hasn’t been any change.

    Thank you.

    add_filter( ‘jetpack_sync_prevent_sending_post_data’, ‘__return_true’ );
    add_action( ‘jetpack_sync_before_send_data’, ‘__return_false’ );
    add_filter( ‘rest_endpoints’, function( $endpoints ) {
    if ( isset( $endpoints[‘/jetpack/v4/sync’] ) ) {
    unset( $endpoints[‘/jetpack/v4/sync’] );
    }
    return $endpoints;
    } );

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

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter eguzmana

    (@eguzmana)

    Ok, thank you !

    Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @eguzmana,

    Our developers checked this and it seems the filter may not have been applied as expected, as we’re still seeing logs that should be suppressed. They’d like to confirm a couple of things with you to help troubleshoot:

    1. Could you share more details on how you initially applied the filter? This will help us ensure there were no steps missed.
    2. If you haven’t tried it yet, they suggest applying the filter through a plugin like Code Snippets. This approach might help confirm the filter is effectively in place.

    They also advised against blocking these requests through Cloudflare, as that might interfere with other functionalities on your site.

    Let us know if this helps.

    Thread Starter eguzmana

    (@eguzmana)

    Hello again,

    Thank you for your reply!

    I placed the filter at the end of the functions.php file, located in the /themes/template_name/ path. Here’s the code: https://justpaste.it/e1nwr.

    Should it be placed somewhere else, or is this correct?

    Thank you once again for your help and for taking the time to look into this!

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @eguzmana

    It seems like that should work, but since we are having trouble here, could you try adding it using the Code Snippets plugin instead? Using Code Snippets also has an advantage in that if you change themes at some point, the code will remain active on your site.

    Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @eguzmana,

    Do you have any updates on this? We usually close inactive threads after one week of no movement, but we want to make sure we’re all set before marking it as solved. Thanks!

    Thread Starter eguzmana

    (@eguzmana)

    Hi, sorry about that.
    I was out of the office so I couldn’t try with the snippet, but I ill do it today and let you know.

    thank you for the follow up!

    Thread Starter eguzmana

    (@eguzmana)

    Hello, I waited a day to monitor the results. However, even with the code snippet implemented, I’m still seeing approximately 2,000 connections per day.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @eguzmana – we have made a small change on our side and it appears the code snippet is now working. Could you please also check this from your side and confirm us?

    Thread Starter eguzmana

    (@eguzmana)

    Thank you @bizanimesh,
    It seems to have worked: https://justpaste.it/h2nkn
    I’ll keep it this way to avoid these connections. Do you have any other recommendations?
    Thank you again, and thanks to everyone who participated, for taking the time to help resolve this issue!
    Ernest

    Thread Starter eguzmana

    (@eguzmana)

    Sorry but you know what @bizanimesh, I’m seeing again the connections, probably because the editors finished early yesterday night and begun late today ??
    https://justpaste.it/gip7z

Viewing 10 replies - 16 through 25 (of 25 total)
  • You must be logged in to reply to this topic.