You can't monetize an embedded bot right?

You can’t monetize an embedded bot right?

@aibox if you can embed a bot on your website behind a payment wall

Good thinking! I’ll try that.

The way I am thinking about embedded bots on a page is that the client who wants the bot is the one paying for it.

You monetize an embedded bot.
You need to put it behind a paywall.

how to embed it in order to avoid user reading the iframe code and sharing this code outside the paywall?

Utilize CSP headers to control which domains can embed your content/iframe.
By setting the frame-ancestors directive, you can specify which sites can frame your content, thereby preventing unauthorized embedding.

For example:

Content-Security-Policy: frame-ancestors 'self' https://trustedpartner.com;

This policy allows only your domain and trustedpartner.com to embed your content.