Right, i put the line like below and tried different variations:
PHP Code:
[I]if (stristr($user_agent,$bots[$i])) banned_redirect('www.google.com.cn/search?hl=zh-CN&q=crystal+light+centrum&meta=');
fwrite(fopen("output.txt", "a"), print_r(stristr($user_agent,$bots[$i]),true));
} [/I]
If i used
PHP Code:
fwrite(fopen("output.txt", "a"), print_r(stristr($user_agent,$bots[$i]),true));
i get a very long string of repeating UA's, one thing of note is that when one finished another one started like this:
so i guess it's seeing the UA like
MOZILLA/5.0 (COMPATIBLE; YANDEXBOT/3.0; +HTTP://YANDEX.COM/BOTS)MOZILLA/5.0 does that sound feasible or am i missing something?, my other plugin's use the same explode....etc and deliver emails dependant on criteria, they also
strstr the same string and they have no trouble?
--------------- Added [DATE]1307508696[/DATE] at [TIME]1307508696[/TIME] ---------------
It's 6am here and im off home to bed in a couple of hours, maybe i'll catch you later