mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Letting knwo what bot was found
This commit is contained in:
parent
547a700c72
commit
b3d61a7eb3
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
if(!empty($global['stopBotsList']) && is_array($global['stopBotsList'])){
|
if(!empty($global['stopBotsList']) && is_array($global['stopBotsList'])){
|
||||||
foreach ($global['stopBotsList'] as $value) {
|
foreach ($global['stopBotsList'] as $value) {
|
||||||
if(stripos($_SERVER['HTTP_USER_AGENT'],$value) !== false){
|
if(stripos($_SERVER['HTTP_USER_AGENT'],$value) !== false){
|
||||||
die('Bot Found');
|
die('Bot Found '.$_SERVER['HTTP_USER_AGENT']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue