Vercel
Learn how to integrate TollBit with Vercel.
Vercel
To forward logs from Vercel, follow the instructions for Log Drains here.
To properly authenticate and verify your logs, you should use the endpoint
https://log.tollbit.com/log/vercel.
In order to verify the endpoint through Vercel, pass the header
x-vercel-tollbit-verify as a custom header, along with your organization's
secret key as the custom header TollbitKey. See the following screenshots for
an example of the configuration. Once you have added these headers, you should
be able to click the Verify button and add your log drain.
Vercel Bot Paywall
To redirect bots to your TollBit subdomain you can use Vercel's Custom WAF rules.
Create a new rule. Set the rule to look at the User Agent and selected Matches expression. Copy the following regex as the expression to match. Feel free to modify to remove or block different bots.
(ChatGPT-User|PerplexityBot|GPTBot|anthropic-ai|CCBot|Claude-Web|ClaudeBot|cohere-ai|YouBot|Diffbot|OAI-SearchBot|meta-externalagent|Timpibot|Amazonbot|Bytespider|Perplexity-User)
Set the rule to redirect to your TollBit subdomain by changing the Then option to Redirect and copy in your TollBit subdomain. The rule should look like this when you're finished
Finally, click save rule. The change won't go into effect until you publish the change to go live.
Updated 6 days ago