> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.co-din.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Why am I getting an "invalid chatbox code" or "Invalid Website" error ?1. Lock chatbox to domain option2. Wrong chatbox code3. You deleted your website

Articles on: [Troubleshooting](/en/category/troubleshooting-18zkxsm/)

This error code is in general due to a configuration issue on your end  
  
  
  
For security concerns, we added an option "Lock the chatbox to website domain (and sub-domains)". By enabling this option, Crisp disallow other website domains to use your Crisp.  
  
*   If your Crisp website domain is www.mydomain.com, then your chatbox is locked for mydomain.com
  
*   If you are using localhost, your chatbox is locked to mydomain.com
  
  
In general, you have to strictly use this lock option, only if you understand this security concern.  
  
Otherwise, just disable it:  
  
*   Go to your website settings: click on the "Settings" icon on the left sidebar, then click on "Websites" and select the target website in the list
  
*   Select Chatbox & Email settings
  
*   Go to chatbox security
  
*   Disable "Lock the chatbox to website domain (and sub-domains)"
  
  
![](https://storage.crisp.chat/users/helpdesk/website/6ec47fbe71e65c00/aa76c17a-7808-42c7-a8aa-a9d506_106xouf.png)  
  
  
  
Maybe you did a wrong copy-paste. In general, your chatbox code should look like this:  
  

``` ```

  
  
Your WEBSITE_ID would look XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX with only alphanumeric characters.  
  
  
  
You may have deleted your website from the Crisp dashboard. In this case, go to [https://app.crisp.chat/settings/websites/](https://app.crisp.chat/settings/websites/) and check if your website is missing.  
  
If using Wordpress, please relink your website, by going to your Wordpress Admin Panel, and then Crisp Livechat admin settings. Relink your Crisp then.

Updated on: 13/06/2022