mirror of
https://github.com/SrIzan10/analytics.srizan.ml.git
synced 2026-05-01 10:35:15 +00:00
remove allow_agent
This commit is contained in:
@@ -12,7 +12,7 @@ import { uuid } from 'lib/crypto';
|
||||
export default async (req, res) => {
|
||||
await useCors(req, res);
|
||||
|
||||
if (isbot(req.headers['user-agent']) && !process.env.ALLOW_AGENT) {
|
||||
if (isbot(req.headers['user-agent'])) {
|
||||
return ok(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user