fix: remove http abuse check

This commit is contained in:
Yanlong Wang 2024-12-06 10:21:57 +08:00
parent 07023f8add
commit b9d07e3692
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37
2 changed files with 1 additions and 5 deletions

View File

@ -227,10 +227,6 @@ export class CrawlerHost extends RPCHost {
}
if (!uid) {
if (targetUrl.protocol === 'http:' && (!targetUrl.pathname || targetUrl.pathname === '/') &&
crawlerOptions.respondWith !== 'default') {
throw new SecurityCompromiseError(`Your request is categorized as abuse. Please don't abuse our service. If you are sure you are not abusing, please authenticate yourself with an API key.`);
}
const blockade = (await DomainBlockade.fromFirestoreQuery(
DomainBlockade.COLLECTION
.where('domain', '==', targetUrl.hostname.toLowerCase())

@ -1 +1 @@
Subproject commit efa6da6ff1c9a4e2841c50a722a0ae2283be827c
Subproject commit 7b3412e64166599429fa38094f4abd071a15fcd6