mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 10:30:55 +01:00
Added more bot test cases
This commit is contained in:
parent
fbecb189d4
commit
40d90757bf
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ const statusRequest = async (
|
|||
const userAgent = request.headers.get('User-Agent') || '';
|
||||
|
||||
const isBotUA =
|
||||
userAgent.match(/bot|facebook|embed|got|firefox\/92|curl|wget/gi) !== null;
|
||||
userAgent.match(/bot|facebook|embed|got|firefox\/92|curl|wget|go-http|yahoo|generator|whatsapp|preview|link|proxy|vkshare|images|analyzer|index|crawl|spider/gi) !== null;
|
||||
|
||||
if (
|
||||
url.pathname.match(/\/status(es)?\/\d+\.(mp4|png|jpg)/g) !== null ||
|
||||
|
|
Loading…
Add table
Reference in a new issue