Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php detect crawler

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']);
Comment

PREVIOUS NEXT
Code Example
Php :: text box should accept only alphanumeric not special characters in php 
Php :: wordpress plugin functions exist 
Php :: php dirpath multiple file extensions 
Php :: calculate array length in php 
Php :: symfony rabbitMQ 
Php :: nginx codeigniter remove index.php 
Php :: Remove prefix on category title 
Php :: array length php 
Php :: picture on picture php 
Php :: how to create singleton laravel 
Php :: php execute command and display output 
Php :: php file upload ajax 
Php :: laravel login shows 404 
Php :: eloquent first 
Php :: laravel include config 
Php :: calculate age from date of birth in php 
Php :: call api with php 
Php :: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted 
Php :: two column date compare in php 
Php :: how to wirte laravel dd function in php 
Php :: remove all items of an array except the last 5 in php 
Php :: find object in array php 
Php :: wordpress options 
Php :: laravel mail cc 
Php :: how to download a file in php 
Php :: laravel bootstrap navbar active 
Php :: database, counts 
Php :: symfony form submit on refresh 
Php :: add action hook 
Php :: defining constant in config laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =