If your website is hosted on Cloudflare, you may be using a firewall for security. However, this might cause some issues when trying to add your website content to Lyro. You may come across "access denied" errors while trying to add your website's URLs as data sources, since Cloudflare's firewall isn't allowing it.
In this short guide, you will learn how to disable Cloudflare's firewall, allowing Lyro to scrape your website content for use as data sources.
Access your rules
Log into your Cloudflare admin panel and choose your website. Then, navigate to Security > WAF and open the Managed rules tab:
Next, use the Add exception button on the right:
Add a new exception
Now, you need to create the actual exception that will let Lyro's scraper scan your website. Name your new exception so that you can easily identify it later.
Using the expression builder below, select the Header field; copy and paste X-Tidio-Lyro-Scraper
as the Name; and make it equal to true
as the Value:
Alternatively, you can simply use the Edit expression link on the right and paste the complete expression below:
(any(http.request.headers["X-Tidio-Lyro-Scraper"][*] eq "true"))
Deploy your new exception
Now that your new exception is ready, all you need to do is activate it. In the bottom-right, click the Deploy button:
Conclusion
From now on, Lyro will no longer be blocked by Cloudflare's firewall; it should be able to scrape your website and build its knowledge base properly.
To learn more about expanding Lyro's knowledge, see this guide on data sources in general.
Comments
0 comments
Please sign in to leave a comment.