Skip to content

Commit

Permalink
🔒 (radar) Add cumulative keywords auto ban
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 19, 2023
1 parent 64fc59b commit 00f8bbc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/env/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ const baseEnv = {
.min(1)
.transform((val) => val.split(','))
.optional(),
RADAR_CUMULATIVE_KEYWORDS: z
.string()
.min(1)
.transform((val) => val.split(','))
.optional(),
},
client: {
NEXT_PUBLIC_E2E_TEST: boolean.optional(),
Expand Down
9 changes: 8 additions & 1 deletion packages/radar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ export const computeRiskLevel = (typebot: any) => {
)
)
return 100
if (!env.RADAR_INTERMEDIATE_RISK_KEYWORDS) return 0
if (
env.RADAR_CUMULATIVE_KEYWORDS &&
env.RADAR_CUMULATIVE_KEYWORDS.every((keyword) =>
stringifiedTypebot.toLowerCase().includes(keyword)
)
)
return 100
if (
env.RADAR_INTERMEDIATE_RISK_KEYWORDS &&
env.RADAR_INTERMEDIATE_RISK_KEYWORDS.some((keyword) =>
stringifiedTypebot.toLowerCase().includes(keyword)
)
Expand Down

3 comments on commit 00f8bbc

@vercel
Copy link

@vercel vercel bot commented on 00f8bbc Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2 – ./apps/viewer

bot.contakit.com
bot.imovfast.com
bot.lafabri.link
bot.neobank.tech
bot.piccinato.co
bot.synclab.help
bot.zionlabs.dev
chat.sifucrm.com
chat.syncwin.com
chatonlineja.com
clo.closeer.work
cockroach.cr8.ai
codigoslucre.com
consultagov.chat
demo.chatjer.com
desafioem21d.com
faqs.nigerias.io
feiraodehoje.com
georgemarttt.com
go.chatbotcv.com
guiascore900.com
haymanevents.com
kw.wpwakanda.com
localamor.online
lojamundobox.com
my.skillbrow.com
myrentalhost.com
nadieralatif.com
next-contato.com
pray.jetdigi.com
ren.aarealtor.co
serasa-score.com
silvercop.com.br
silvercop.online
stan.vselise.com
typebot.aloe.bot
vidalimentar.com
voicehelp.cr8.ai
web.bjogador.com
web.drrichbr.com
webwhatsapp.work
whatisappweb.com
wts.aarealtor.co
www.pantaflow.ai
zap.fundviser.in
acordo-serasa.com
acordocorreto.com
akses.sifucrm.com
analistamines.com
app.bouclidom.com
appmillion.online
averdadehoje.site
bot.cerograsa.com
viewer-v2-typebot-io.vercel.app
bot.atendimentolimpafacilbrasil.com
download.thailandmicespecialist.com
mdb.assessoria.aloisio.progenbr.com
mdb.assessoria.girotto.progenbr.com
mdb.assessoria.marinho.progenbr.com
mdb.assessoria.rodrigo.progenbr.com
register.thailandmicespecialist.com
mdb.assessoria.desideri.progenbr.com
mdb.assessoria.fernanda.progenbr.com
mdb.assessoria.jbatista.progenbr.com
mdb.assessoria.mauricio.progenbr.com
mdb.evento.autocadastro.progenbr.com
form.shopmercedesbenzsouthorlando.com
mdb.evento.equipeinterna.progenbr.com
bot.studiotecnicoimmobiliaremerelli.it
mdb.assessoria.boaventura.progenbr.com
mdb.assessoria.jtrebesqui.progenbr.com
pesquisa.escolamodacomproposito.com.br
anamnese.clinicaramosodontologia.com.br
gabinete.baleia.formulario.progenbr.com
mdb.assessoria.carreirinha.progenbr.com
chrome-os-inquiry-system.itschromeos.com
mdb.assessoria.paulomarques.progenbr.com
viewer-v2-git-main-typebot-io.vercel.app
main-menu-for-itschromeos.itschromeos.com
mdb.assessoria.qrcode.ademir.progenbr.com
mdb.assessoria.qrcode.arthur.progenbr.com
mdb.assessoria.qrcode.danilo.progenbr.com
mdb.assessoria.qrcode.marcao.progenbr.com
mdb.assessoria.qrcode.marcio.progenbr.com
mdb.assessoria.qrcode.aloisio.progenbr.com
mdb.assessoria.qrcode.girotto.progenbr.com
mdb.assessoria.qrcode.marinho.progenbr.com
mdb.assessoria.qrcode.rodrigo.progenbr.com
mdb.assessoria.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.desideri.progenbr.com
mdb.assessoria.qrcode.fernanda.progenbr.com
mdb.assessoria.qrcode.jbatista.progenbr.com
mdb.assessoria.qrcode.mauricio.progenbr.com
mdb.assessoria.fernanda.regional.progenbr.com
mdb.assessoria.qrcode.boaventura.progenbr.com
mdb.assessoria.qrcode.jtrebesqui.progenbr.com
mdb.assessoria.qrcode.carreirinha.progenbr.com
mdb.assessoria.qrcode.paulomarques.progenbr.com
mdb.assessoria.qrcode.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.fernanda.regional.progenbr.com

@vercel
Copy link

@vercel vercel bot commented on 00f8bbc Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 00f8bbc Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
app.typebot.io
builder-v2-git-main-typebot-io.vercel.app

Please sign in to comment.