( Kendim yararlandığım için sizlerlede paylaşmak istedim )
https://www.bing.com/indexnow
Adresine girerek "APİ" anahtarı oluşturup api ftp ile kök klasöre yüklüyorsunuz"("httpdocs" veya "public_html") Metin dosyası, API anahtarının kendisiyle aynı ada sahip olmalıdır.
Cloudflare kullanıyorsanız "Crawler Hints" aktif hale getirmeniz lazım.
İçerik eklediğinizde yapmanız gereken tek şey,
Sending of URLs
https://www.siteadresi/indexnow?url=http://www.example.com/product.html&key=apinumaranız
Bunu özel siteleri için kullananlar; // Ekleme yada güncelleme yaptığında ;
function bing_le($adres)
{
$ch = curl_init($adres);
$cookieFile = __DIR__ . '/cookies.txt';
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0';
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
$headers[] = 'Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Upgrade-Insecure-Requests: 1';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$data = curl_exec($ch);
$cookies = curl_getinfo($ch, CURLINFO_COOKIELIST);
$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if($retcode==200)
{
return true;
}else{
return false;
}
}
bing_le("https://www.bing.com/indexnow?url=https://siteadresiniz/uzantiniz&key=apikey");Site adresiniz ve uzantınız kısmını eklediğiniz içeriğe göre POST yada GET ile alırsanız manuel işlem yapmadan, eklediğiniz içerik otomatik olarak "URL 200" gönderir ve bot hemen gelip içeriğinizi indexler.**Curl dosyası örnektir.
Wordpress kullanmadığım için ilgili eklentisi var mı bilmiyorum var olan paylaşabilir.
