How To Tell Human From Search Engine?
I wrote a php script to track visitors to my website. How do I tell which visit is a real human and which is just a search engine. Obviously, I want to count human visitors, not search engines.
I wrote a php script to track visitors to my website. How do I tell which visit is a real human and which is just a search engine. Obviously, I want to count human visitors, not search engines.
This may help you
< ?php
if (preg_match('/slurp|inktomisearch|[Gg]ru… $_SERVER['HTTP_USER_AGENT'])){
echo "Not a human";
}
?>