How to block specific user from using chatbot

Hello community and team,

I see that there is someone, repeatedly, is trying to upload a file in the chatbot, but I suspect it is an attempt to hack or send some viruses or unwanted file. there is any way to get the IP address of the person is doing this ? will the chatbot block dangerous files ?

Thank you

C.

2 Likes

Hi there and welcome to the Community, @Ital_Jidlo :waving_hand:

Ah, I totally understand your feelings!

Unfortunately, there is no way to block users by IP address, but a similar idea is already on the Wishlist. Feel free to upvote it here - Block certain customer from using the chat

The good news is that users can’t send files/images during the chat. So, worry not - these users won’t be able to spread viruses or hack using the chatbot.

Please let me know if this clarifies things or if you have any questions left :slightly_smiling_face:

1 Like

Hey @Ital_Jidlo,

Curious: How is the user trying to upload a file into the AI Chatbot? Currently, the AI Chatbot does not offer any features to upload files. The only thing a user can do is insert a malicious link (URL) into the AI Chatbot conversation. See below image.

To prevent issues, never click nor copy and paste links from unknown users. As a back up, make sure your devices have anti-malware/anti-virus software installed that can detect and block malware and viruses at both a browser and system level (e.g., Norton 360).

Useful Tip: Introducing the ability to block an IP address, Country, or User Agent within the AI Chatbot will never be of much help since bad actors can always use TOR or a VPN to bypass any targeted blocks. Simply follow common safety practices.

Note to Team Elfsight: It would be helpful if your developers can add a Safety toggle switch to the AI Chatbot settings that will allow users to block bad actors trying to communicate with the AI Chatbot via TOR, VPN, unknown User Agents, or unknown/malicious Hostnames (e.g., *.reverse-dns, ptr.default, etc.). Kindly review and provide feedback on this.

Cheers!

2 Likes

Hello Petar,

Thank you for the reply, In one of the chat transcript I see the user asking:

is it ok if I upload an image?

And then the bot answered: (it is in czech, below I have included the translation)

Ano — klidně nahrajte obrázek

MĆŻĆŸete sem nahrĂĄt obrĂĄzek — rĂĄdi se na něj podĂ­vĂĄme a pomĆŻĆŸeme (napƙ. identifikovat produkt, zkontrolovat etiketu, poradit s objednĂĄvkou nebo doporučit podobnĂ© zboĆŸĂ­). Na naĆĄem webu pouĆŸĂ­vĂĄme obrĂĄzky ve formĂĄtu .jpg (pƙíklady jsou v mapě strĂĄnek), takĆŸe nahrĂĄnĂ­ JPG nebo PNG obvykle funguje dobƙe .

NeĆŸ nahrajete, prosĂ­m:

  • NezasĂ­lejte citlivĂ© osobnĂ­ Ășdaje (napƙ. rodnĂ© číslo, doklady) — poskytněte pouze fotku produktu/etikety.

  • NapiĆĄte krĂĄtce, co chcete, abychom s obrĂĄzkem udělali (napƙ. “poznat značku”, “zjistit dostupnost”, “porovnat s produktem na eshopu”).

Translation:

Yes — feel free to upload an image
You can upload an image here — we’ll be happy to take a look and help (e.g. identify the product, check the label, help with an order, or recommend similar items). We use .jpg images on our website (examples are in the sitemap), so uploading a JPG or PNG usually works well.

Before you upload, please:

Do not send sensitive personal information (e.g. social security number, documents) — provide only a photo of the product/label.
Write a short description of what you want us to do with the image (e.g. “recognize the brand”, “check availability”, “compare with the product in the online store”).

Not sure if this has been changed recently, but a new attempt was refused by the bot.

Thank you

C.

2 Likes

Hi @Ital_Jidlo,

Thanks for sharing that. Ah, that explains a lot. Nothing to worry about since the AI Chatbot currently is unable to upload any type of files. It will only accept URLs (i.e., links) which could be malicious.

Also, the answer provided by the AI Chatbot is not always accurate since it’s based on your website, its content, your AI chatbot training instructions, and standard chatbot answers.

To give you some comfort, I entered a similar question into our AI Chatbot and received a similar answer. See below image. The answer given is also incorrect based on the fact that there is no file upload button or function within the application. Once the file upload button is added to the AI Chatbot, you will still need to follow standard safety practices – as explained above.

Based on the above, the real question is: How to fix the answer provided by Elfsight’s AI Chatbot. The chatbot answer should be: “Sorry, I am unable to accept file uploads at this time.” (or similar).

I hope this helps!

Cheers,

Petar


1 Like

Hi @Ital_Jidlo (and all others),

To fix the above issue (i.e., wrong AI Chatbot answer when trying to upload a file), please enter the following AI Chatbot instruction (Location: Training > Train Your AI Agent > Agent Instructions):

** FILE UPLOAD RULES **

Currently, you cannot receive uploads. When users try to upload files or images, respond: 'I am unable to accept file or image uploads at this time."

You are a text-only assistant. You cannot view images, read PDF/Doc files, or process data uploads. Inform users to provide all information in text format.

You cannot accept, process, or view any files or images uploaded by the user. If a user attempts to upload a file or asks you to analyze an image, politely inform them that this feature is currently unavailable.

Never suggest that the user upload a file or image to provide more context. If you detect a user referring to an attachment you cannot see, clarify that you only process text input.

Do not mention existing training data as ‘uploaded files’ to avoid confusing users who might think they have upload access.

Above thoroughly tested. See below image for test results.

I hope this helps!

Cheers,

Petar


3 Likes

Yep, @AeroConsultants is absolutely right! Feel free to use this prompt in the Instruction :wink:

If anything else comes up, we’ll be happy to advise!

2 Likes

Hi @Max,

After reading many community posts related to the AI Chatbot, I noticed there are numerous, useful AI Chatbot instructions that should be integrated into the suggestions you provided here: Basic Tips For Your AI Chatbot Instruction

Can you guys kindly perform a sweep of all posted instructions and amend your post? For example, the instructions I provided above are ESSENTIAL for your AI Chatbot (until the AI Chatbot code is updated to allow uploading of files). Otherwise, Elfsight’s AI Chatbot will continue to provide inaccurate answers.

Thank you!

2 Likes

Hi @AeroConsultants :waving_hand:

Thank you for your follow-up!

You see, we’ve intentionally included only the basic instruction tips in this post to cover the most common scenarios.

While your idea sounds interesting, we feel that adding more specific instructions might make the thread a bit cluttered and harder to navigate. For now, we’ll keep things as they are.

The good thing is that our forum search function works really well, so if other users have similar questions, they should be able to easily find the recommendations across various threads in the “Ask the Community” category.

Thanks again for your thoughtful suggestion and for helping us keep things organized and easy to find — we truly appreciate your input :blush:

1 Like

Hey @Max,

Thanks for the quick reply. Respectfully, the instruction I provided above covers a COMMON SCENARIO since Elfsight’s AI Chatbot does not allow the uploading of any type of files.

I recommend adding it. It’s a built-in issue (bug) with the chatbot (until Elfsight allows the uploading of files). Optional: Retrain your chatbot by updating your baseline code.

Cheers!

1 Like

Right now, the AI assistant only uses the information from this knowledge base to generate replies, which is why it doesn’t know whether the upload feature is supported.

That said, I think adding this tip to the instructions is a great idea! While this is the first time we’ve had a question about file uploads, there’s a chance it might come up again. So, we’ve gone ahead and added your tip to the post :slightly_smiling_face:

2 Likes