- 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 (
|
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",
|