randydev commited on
Commit
ad17f38
·
verified ·
1 Parent(s): b5dfc11
Files changed (1) hide show
  1. middleware/midware.js +2 -2
middleware/midware.js CHANGED
@@ -7,7 +7,7 @@ import * as config from '../config.js';
7
 
8
  const ALLOWED_UA_REGEX = /^Ryzenth\/(Python|TS|Rust)-\d+\.\d+/;
9
  const EXTRA_ALLOWED_UA = [
10
- "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36"
11
  ];
12
 
13
  const authenticateApiKeyPremium = async (req, res, next) => {
@@ -18,7 +18,7 @@ const authenticateApiKeyPremium = async (req, res, next) => {
18
  EXTRA_ALLOWED_UA.some(allowed => ua?.startsWith(allowed));
19
 
20
  if (!isAllowed) {
21
- console.log(ua);
22
  return res.status(403).json({
23
  status: "error",
24
  message: "Access blocked: User-Agent not allowed",
 
7
 
8
  const ALLOWED_UA_REGEX = /^Ryzenth\/(Python|TS|Rust)-\d+\.\d+/;
9
  const EXTRA_ALLOWED_UA = [
10
+ "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36"
11
  ];
12
 
13
  const authenticateApiKeyPremium = async (req, res, next) => {
 
18
  EXTRA_ALLOWED_UA.some(allowed => ua?.startsWith(allowed));
19
 
20
  if (!isAllowed) {
21
+ // console.log(ua);
22
  return res.status(403).json({
23
  status: "error",
24
  message: "Access blocked: User-Agent not allowed",