Php Detect Crawler

[Solved] Php Detect Crawler | Php - Code Explorer | yomemimo.com
Question : php detect crawler

Answered by : -1vajs8k9qntw

function is_web_crawler($user_agent) { return preg_match('/archiver|bot|crawl|slurp|spider|mediapartners/i',$user_agent);
}
$is_crawler = is_web_crawler($_SERVER['HTTP_USER_AGENT']);

Source : | Last Update : Mon, 08 Mar 21

Answers related to php detect crawler

Code Explorer Popular Question For Php