nomagick commited on
Commit
b9d07e3
·
unverified ·
1 Parent(s): 07023f8

fix: remove http abuse check

Browse files
backend/functions/src/cloud-functions/crawler.ts CHANGED
@@ -227,10 +227,6 @@ export class CrawlerHost extends RPCHost {
227
  }
228
 
229
  if (!uid) {
230
- if (targetUrl.protocol === 'http:' && (!targetUrl.pathname || targetUrl.pathname === '/') &&
231
- crawlerOptions.respondWith !== 'default') {
232
- 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.`);
233
- }
234
  const blockade = (await DomainBlockade.fromFirestoreQuery(
235
  DomainBlockade.COLLECTION
236
  .where('domain', '==', targetUrl.hostname.toLowerCase())
 
227
  }
228
 
229
  if (!uid) {
 
 
 
 
230
  const blockade = (await DomainBlockade.fromFirestoreQuery(
231
  DomainBlockade.COLLECTION
232
  .where('domain', '==', targetUrl.hostname.toLowerCase())
thinapps-shared CHANGED
@@ -1 +1 @@
1
- Subproject commit efa6da6ff1c9a4e2841c50a722a0ae2283be827c
 
1
+ Subproject commit 7b3412e64166599429fa38094f4abd071a15fcd6