mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
If is command line do not treat as a bot
This commit is contained in:
parent
f672e2d0e1
commit
ab4d4eb727
2 changed files with 184 additions and 0 deletions
|
@ -236,6 +236,9 @@ function isBot($returnTrueIfNoUserAgent=true)
|
|||
if (empty($_SERVER['HTTP_USER_AGENT'])) {
|
||||
return $returnTrueIfNoUserAgent;
|
||||
}
|
||||
if (isCommandLineInterface()) {
|
||||
return false;
|
||||
}
|
||||
if (isAVideoEncoder()) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue