Hi all,
Well, I think that subject is very clear:
I am trying to program a script to determine if part of HTTP_USER_AGENT matches with a list of robots keywords.
I have tried to put the list in an array and use foreach or for with ereg, stripos, stristr, preg_match and several options without success.
This list could be added to an array or Mysql database, no problem.
$bots_list = Array("robot",
"unchaos",
"unchaosbot",
"robots.txt validator",
"die-kraehe meta-search-engine",
"sitidi.net",
"sitidibot"
);
I need some idea to develop something that runs fine matching complete words with blank spaces and so on.
It isn't easy. I have worked several hours, but I cannot find a good solution.
Thank you very much in advance.
Mapg