$domain, 'key' => $key, 'keyLocation' => $base . '/' . $key . '.txt', 'urlList' => $pages ]); $apis = [ 'https://api.indexnow.org/indexnow', 'https://www.bing.com/indexnow' ]; $results = []; foreach ($apis as $api) { $status = 0; if (function_exists('curl_init')) { $ch = curl_init($api); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_POSTFIELDS => $payload, CURLOPT_HTTPHEADER => ['Content-Type: application/json; charset=utf-8'], CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 8, CURLOPT_SSL_VERIFYPEER => false ]); curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); } else { $opts = [ 'http' => [ 'method' => 'POST', 'header' => "Content-Type: application/json ", 'content' => $payload, 'timeout' => 8 ], 'ssl' => ['verify_peer' => false, 'verify_peer_name' => false] ]; $context = stream_context_create($opts); $res = @file_get_contents($api, false, $context); if ($res !== false) $status = 200; } $results[] = ['api' => $api, 'status' => $status]; } echo '' . htmlspecialchars($domain) . ' Indexer'; echo ''; echo '

⚡ ' . htmlspecialchars($domain) . ' Otomatik İndeksleme Tetiklendi

'; echo ''; echo '

Sitemap.xml İncele | Robots.txt İncele

'; echo ''; ?>