HEX
Server: Apache/2.4.66 (Debian)
System: Linux 3e214bd180d4 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/mu-plugins/block_external_fix.php
<?php
/**
 * Block slow external Elementor requests instantly
 */

if (!defined('ABSPATH')) return;

add_filter('pre_http_request', function($preempt, $args, $url) {
    
    static $blocked = [
        'migrations.elementor.com',
        'connect.elementor.com', 
        'analytics.elementor.com',
    ];
    
    foreach ($blocked as $host) {
        if (strpos($url, $host) !== false) {
            error_log("[BLOCKED] $url");
            // Return WP_Error to instantly fail the request
            return new WP_Error('blocked', 'Blocked by performance filter: ' . $host);
        }
    }
    
    return $preempt;
}, 1, 3);