adjust proxycheck during pixel request
This commit is contained in:
parent
c887838e0a
commit
a08ba00940
|
@ -200,7 +200,10 @@ export default async function drawByOffsets(
|
||||||
);
|
);
|
||||||
|
|
||||||
if (needProxycheck) {
|
if (needProxycheck) {
|
||||||
await isIPAllowed(ip, true);
|
const pc = await isIPAllowed(ip, true);
|
||||||
|
if (pc.status > 0) {
|
||||||
|
throw new Error(11);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let u = 0; u < pxlCnt; u += 1) {
|
for (let u = 0; u < pxlCnt; u += 1) {
|
||||||
|
|
|
@ -13,9 +13,7 @@ async function banme(req, res) {
|
||||||
reason = 'Userscript Bot';
|
reason = 'Userscript Bot';
|
||||||
} else if (code === '2') {
|
} else if (code === '2') {
|
||||||
const ua = req.headers['user-agent'];
|
const ua = req.headers['user-agent'];
|
||||||
if (ua && (
|
if (ua && (ua.includes('Android') || ua.includes('iPhone'))) {
|
||||||
(ua.includes('OPR/') && ua.includes('Android')) || ua.includes('iPhone')
|
|
||||||
)) {
|
|
||||||
res.json({
|
res.json({
|
||||||
status: 'nope',
|
status: 'nope',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user