1
0
Fork 0
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:
Daniel Neto 2024-07-03 15:53:59 -03:00
parent f672e2d0e1
commit ab4d4eb727
2 changed files with 184 additions and 0 deletions

View file

@ -236,6 +236,9 @@ function isBot($returnTrueIfNoUserAgent=true)
if (empty($_SERVER['HTTP_USER_AGENT'])) {
return $returnTrueIfNoUserAgent;
}
if (isCommandLineInterface()) {
return false;
}
if (isAVideoEncoder()) {
return false;
}