Will blocking User-agent: GPTBot in robots.txt work for this too?
https://platform.openai.com/docs/plugins/bot
User-agent: ChatGPT-User
Disallow: /Not really. That use case is done, of course, but the primary purpose of robots.txt is to help crawlers by indicating what parts of the website are appropriate to be searched and what parts aren't.
Robots.txt is not intended primarily as a means to defend a site against crawlers. That's why it relies on the goodwill of crawlers to work.
There are two agents, but apparently you can't allow one but disallow another.
For example if you make a web page a user pulls up that calls another webpage, is that a user action, a script action, a mix of both? I personally would consider it a user action.
Challenge accepted!