How to block Sourcegraph Cody
How to block Sourcegraph Cody on every device
Sourcegraph Cody is an AI coding assistant that answers questions about and edits large codebases. Below: how to block Sourcegraph Cody in the browser, on phones and tablets, on your home or school network, and on managed devices.
AI blocker suite for browsers, desktop, and mobile
Sourcegraph Cody
AI coding tools
sourcegraph.comBlocked1 hostname in the Nullgen catalog
Every entry also covers its subdomains, so the Sourcegraph Cody app and API are blocked too.
What Sourcegraph Cody connects to
These are the hostnames Sourcegraph Cody uses for its website, its apps, and its API. Each entry is matched as a suffix — blocking sourcegraph.com also blocks every subdomain of it — so the Sourcegraph Cody app cannot slip through on a hostname that is not listed. Shared hosts that other products need are deliberately left out.
| Hostname | Role |
|---|---|
| sourcegraph.com | Main website |
Block Sourcegraph Cody in the browser
Free: Nullgen browser extension
The Nullgen extension stops typing and pasting into the Sourcegraph Cody prompt box — and into AI prompt fields on any website, including new tools that launched last week. Everything else on the page keeps working. It runs right in Chrome, Edge, Firefox, and Safari, with no DNS or policy setup.
Managed browsers: block the sites by policy
On a school or company fleet, push the hosts above as a browser policy to block the whole Sourcegraph Cody site. These snippets use the official Chrome, Edge, and Firefox policy names.
{
"URLBlocklist": [
"sourcegraph.com"
]
}Chrome and Edge treat a bare hostname as the host plus every subdomain.
{
"policies": {
"WebsiteFilter": {
"Block": [
"*://sourcegraph.com/*",
"*://*.sourcegraph.com/*"
]
}
}
}Firefox needs both the apex and the wildcard pattern.
Need every AI tool in one file, or a .reg or macOS profile?
Open the free policy generatorBlock the Sourcegraph Cody app on phones and tablets
Nullgen mobile app
The Nullgen app blocks Sourcegraph Cody and 100+ other AI apps and sites on the whole device with an on-device filter — the app, the website, and the API, on any network, with no DNS server to run. Included with Nullgen Pro.
Without Nullgen: Screen Time on iPhone and iPad
- 1Open Settings → Screen Time → Content & Privacy Restrictions and turn restrictions on. This covers Sourcegraph Cody in Safari and in apps that use Apple’s web filter.
- 2Under Web Content, choose Limit Adult Websites — the setting that lets you deny sourcegraph.com by name.
- 3Under Never Allow, add sourcegraph.com. Safari and apps that use Apple’s web filter will refuse it.
- 4To keep the Sourcegraph Cody app off the device entirely, delete it and set Installing Apps to Don’t Allow, or use Ask to Buy on a child’s Apple Account.
Without Nullgen: Family Link on Android
- 1Open Family Link, choose the child, then Controls → Content restrictions → Google Chrome — where Sourcegraph Cody can be blocked by site.
- 2Choose Only allow approved sites, or add sourcegraph.com under Blocked sites.
- 3Under Controls → App limits, block the Sourcegraph Cody app, or require approval for new installs from Google Play.
Block Sourcegraph Cody on your home or school network
A DNS blocker such as Pi-hole, AdGuard Home, NextDNS, or pfBlockerNG blocks Sourcegraph Cody for every device on the network — laptops, phones, consoles, and the Sourcegraph Cody app — without installing anything on them. Subscribe to the Sourcegraph Cody file from the public blocklist, or paste the rules directly.
Subscribe to the Sourcegraph Cody list
AdGuard Home, uBlock Origin, and Brave rules
||sourcegraph.com^DNS blocking cannot see inside a VPN or a phone on mobile data. For a block that follows the device, use the Nullgen apps or an MDM profile.
Block Sourcegraph Cody on managed devices
Schools and companies can block Sourcegraph Cody on every managed iPhone, iPad, laptop, and Chromebook from the MDM they already run — Intune, Jamf, Kandji, or Google Workspace — with per-person policies and an approval flow for legitimate use. Nullgen Pro provides the profiles and the dashboard; these guides walk through the setup.
About Sourcegraph Cody
How people use Sourcegraph Cody
Cody is Sourcegraph’s coding assistant, built on Sourcegraph’s code search so it can answer questions across large codebases. Sourcegraph’s site positions it for understanding and overseeing code at scale, with a CLI, APIs, and documentation, and the assistant runs on sourcegraph.com.
What makes Sourcegraph Cody hard to block
Cody moved off its own subdomain onto the sourcegraph.com apex, so this entry blocks the whole Sourcegraph site, including its code search product. That is a broader block than most on this page, and a company that uses Sourcegraph for search will want an allow policy for the people who need it.
A company that self-hosts Sourcegraph runs it on its own hostnames, which this list does not touch.
On a managed laptop, an MDM profile or DNS block for sourcegraph.com disables the Cody IDE extension’s connection to the hosted service. Sourcegraph’s documentation, linked below, covers the CLI, the API, and self-hosting.
Questions about blocking Sourcegraph Cody
Does blocking Cody also block Sourcegraph code search?
Yes. Cody now runs on the sourcegraph.com apex, so the block covers the whole hosted site. Use a Nullgen Pro allow policy for teams that need Sourcegraph search. Sourcegraph’s own site positions code search and Cody as one product on one domain.
Does this block a self-hosted Sourcegraph?
No. A self-hosted instance runs on the company’s own hostnames. Sourcegraph’s documentation covers self-hosted deployments separately from the hosted product.
Why did the catalog change Cody’s hostname?
The former cody.sourcegraph.com address no longer resolves; Cody lives on the main site now. The sourcegraph.com apex is now the only hostname the product uses.
Does the free Nullgen extension block Sourcegraph Cody?
Yes. The free extension blocks the prompt box on Sourcegraph Cody and on any other site where it recognizes an AI prompt, in Chrome, Edge, Firefox, and Safari. It works on the page itself, so it needs no policy and no DNS change.
Does this block the Sourcegraph Cody app, not just the website?
A DNS or device-level block does. The app talks to the same hostnames listed above, and every entry covers its subdomains, so the app cannot slip through on a hostname that is not listed. A browser policy or extension only covers the browser.
What happens when Sourcegraph Cody adds a new hostname?
The catalog is updated as vendors change, and the Nullgen apps, the extension, and the public blocklist all read from it, so a new hostname reaches every device without anyone editing a list by hand.
Official resources
Documentation from Sourcegraph Cody that is useful when blocking or managing it.
Block Sourcegraph Cody today
Start with the free browser extension. Add Nullgen Pro when you need the Sourcegraph Cody app blocked on phones, tablets, and desktops, with approvals for the people who really need it.