Send Bot Management information to origin · Cloudflare Rules docs | Latest TMZ Celebrity News & Gossip | Watch TMZ Live Skip to content
Cloudflare Docs

Send Bot Management information to origin

Send Bots information to your origin. Refer to Bot Managenent variables for a full list of available fields.

export default {
async fetch(request) {
// Clone the original request to construct a new request
const newRequest = new Request(request);
// Set Bot Management headers on a new request to the origin: https://developers.cloudflare.com/bots/reference/bot-management-variables/#workers-variables
newRequest.headers.set("bot-score", request.cf.botManagement.score); // bot score (integer)
newRequest.headers.set(
"verified-bot",
request.cf.botManagement.verifiedBot,
); // verified bot (boolean)
newRequest.headers.set("ja4", request.cf.botManagement.ja4); // JA4 fingerprint hash (string)
// Serve response to the new request from the origin
return await fetch(newRequest);
},
};

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.