Cloudflare connector
If your domain is on Cloudflare: our connector works with any website and does the same job as the WordPress plugin.
If your domain is on Cloudflare, our connector is the most complete way to connect, whatever your website is built with. Like our WordPress plugin, it adds your business details to every page, puts your AI guide at yoursite.co.uk/llms.txt, counts which AI assistants visit, and updates by itself when your details change. It also proves you own the website. It takes about 10 minutes.
Is it for you?
Log in at dash.cloudflare.com. If you can see your domain there, choose it and open DNS → Records. If the lines for your domain and www show an orange cloud with the word Proxied, this guide is for you. If they show a grey cloud (DNS only), or you don’t use Cloudflare, follow the guide for your website builder instead. If your web designer looks after Cloudflare, send them this page.
It runs on Cloudflare’s free plan, which covers up to 100,000 page views a day. Approve your business details in step 1 of your website’s Setup tab before you start.
Set it up
- Get your code. In your Known by AI dashboard, open your website’s Setup tab, choose Cloudflare in step 2 and press Create my connector code. Press Copy. The code includes your private key and is shown only once, so keep that page open until you’ve finished.
- Make a space for it in Cloudflare. In Cloudflare’s menu on the left, choose Workers & Pages (in some accounts it’s inside Compute). Press the blue Create button, then Start with Hello World!. Type
knownbyaias the name and press Deploy. - Put our code in. Press Edit code. Click in the code, select it all (Ctrl+A on Windows, ⌘+A on a Mac), press Delete, paste your code and press the blue Deploy button. The preview beside the code will say “There is nothing here yet”: that’s normal.
- Point it at your website. Press knownbyai at the top left to go back, open the Domains tab (or Settings → Domains & Routes) and press Add Route. Choose your domain as the Zone and enter
yoursite.co.uk/*as the Route (your setup page shows yours, ready to copy). If it asks about Failure mode, choose Fail open (proceed). Press Add route, then add a second route forwww.yoursite.co.uk/*. Type them exactly: a route starting*.doesn’t cover your main address. - Check it. Open your website in a new tab, then press Check my connector on your setup page. It either says you’re connected or tells you what to fix.
Let AI assistants in
Cloudflare can turn AI assistants away. In Cloudflare, choose your domain, then AI Crawl Control. If any AI search or AI assistant crawlers are set to Block, change them to Allow. You can still block AI training if you want to: that doesn’t stop AI assistants recommending you.
Lost the code, or Check my connector says it’s out of date? Create a new code and paste it over the old one in Cloudflare (step 3). The old key stops working straight away. The connector and the WordPress plugin share one site key, so use one or the other.
Removing it
In Cloudflare, delete the knownbyai Worker (or just its routes). Your website goes back to exactly how it was.