Create a Navigation Policy
Create a navigation policy for this project. Omitted fields take the defaults: enabled, block by default, block unknown domains, no category rules, and no overrides. Bind the policy to a session with browserSettings.riskPolicyId.
Authorizations
Your Browserbase API Key.
Body
Navigation categories. Browserbase blocks a domain in any blocked category, even if it is also in an allowed one.
adult, ai-tools, alcohol-tobacco, business, child-abuse, communication, dating, drugs, education, entertainment, finance, gambling, games, government-military, hacking, hate, health, illegal-activity, infrastructure, kids, lifestyle, malware, newly-registered, news, parked-inactive, phishing-scams, piracy, proxy-anonymizer, search-portal, self-harm, shopping, social-media, society-culture, sports, technology, terrorism-extremism, travel, url-shortener, violence, weapons Navigation categories. Browserbase blocks a domain in any blocked category, even if it is also in an allowed one.
adult, ai-tools, alcohol-tobacco, business, child-abuse, communication, dating, drugs, education, entertainment, finance, gambling, games, government-military, hacking, hate, health, illegal-activity, infrastructure, kids, lifestyle, malware, newly-registered, news, parked-inactive, phishing-scams, piracy, proxy-anonymizer, search-portal, self-harm, shopping, social-media, society-culture, sports, technology, terrorism-extremism, travel, url-shortener, violence, weapons Response
The navigation policy has been created.
Rules for which domains a browser session may navigate to. Bind a policy to a session with browserSettings.riskPolicyId; Browserbase then allows or blocks each navigation by the policy's overrides, its category rules, and finally its default decision. A session keeps the policy as it was when the session started: edits, disables, and deletes apply to sessions that start afterwards. A policy checks navigations: page loads, iframes, popups, and each redirect. It doesn't check requests a page makes itself, such as scripts, images, and fetch calls. In a session that loads a Context, pages skip their service workers so that the policy checks every navigation.
Navigation categories. Browserbase blocks a domain in any blocked category, even if it is also in an allowed one.
adult, ai-tools, alcohol-tobacco, business, child-abuse, communication, dating, drugs, education, entertainment, finance, gambling, games, government-military, hacking, hate, health, illegal-activity, infrastructure, kids, lifestyle, malware, newly-registered, news, parked-inactive, phishing-scams, piracy, proxy-anonymizer, search-portal, self-harm, shopping, social-media, society-culture, sports, technology, terrorism-extremism, travel, url-shortener, violence, weapons Navigation categories. Browserbase blocks a domain in any blocked category, even if it is also in an allowed one.
adult, ai-tools, alcohol-tobacco, business, child-abuse, communication, dating, drugs, education, entertainment, finance, gambling, games, government-military, hacking, hate, health, illegal-activity, infrastructure, kids, lifestyle, malware, newly-registered, news, parked-inactive, phishing-scams, piracy, proxy-anonymizer, search-portal, self-harm, shopping, social-media, society-culture, sports, technology, terrorism-extremism, travel, url-shortener, violence, weapons