short answer:
you can use this plugin:
https://wordpress.org/plugins/ai-deny/
hey!!
mmh i mean, the whole internet got distilled into LLMs, books and more, no one allowed them to do that :DD
in your robots.txt file you can add:
User-agent: meta-externalagent
Disallow: /
this asks the bots to ignore the site. but they are free to decide if they follow your rule or not.
you can use this plugin:
https://wordpress.org/plugins/ai-deny/
it will do the above and do it for more bots too.
to be 100% sure, somehow your host would need to setup a firewall and block all IP's of the AI companies. thats sth i cant do