https://discord.gg/botpress logo
Hello ALL!
# 🌎general
t
Hello ALL! Hello @bumpy-butcher-41910 To embed a chatbot into a website, is there a way to limit the embedding to certain domains?
b
currently no, not directly from within Botpress
what you're trying to do?
t
Limit the domains which chatbot can function on
Now it can be embedded on any domain. Is there a way to define certain domains?
@bumpy-butcher-41910 My client is worried that people might hijack the embedded bot: "Is there no way of limiting domain? It’s too easy for someone to embed it on unauthorized site and run up my bills." Can you help me to address his concern?
b
we don't currently have an elegant solution for this - we're in the process of investigating methods to whitelist certain domains, to avoid this problem, but nothing at the moment
t
Thank you! I think that'd be an essential feature to have.
b
Hi Robert - this answer is not going to work. Anyone who copy/pastes the embed code can run up our costs with zero protection on our side.
This is software switching worthy.
I can't use this software.
I cannot be the only person who is scared that an embed code copy/pasted can run billing through the roof. This is a major security liability.
t
@bumpy-butcher-41910
b
Using the referrer to control access to the embed code is indeed a simpler approach. Here’s how you can implement this solution: Step 1: Domain Registration Register the domains that are allowed to use the embed code. Step 2: Embed Code with Referrer Check Check the HTTP referrer to ensure the request is coming from an allowed domain. Step 3: Serve the Embed Code
b
hi all - a quick update: domain whitelisting is a service that's currently in an access period for Team plan subscribers
if you have further questions about this, you can reach out to our sales team, who can guide you through a Team plan subscription 🙂
2 Views