mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
36d4306b7f
commit
c1b141ef1e
1 changed files with 3 additions and 0 deletions
|
@ -2244,6 +2244,9 @@ function isBot() {
|
|||
if (empty($_SERVER['HTTP_USER_AGENT'])) {
|
||||
return true;
|
||||
}
|
||||
if(isAVideoEncoder()){
|
||||
return false;
|
||||
}
|
||||
// User lowercase string for comparison.
|
||||
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
|
||||
// A list of some common words used only for bots and crawlers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue