Skip to content
Nullgen AI Blocker

How to block Cursor

How to block Cursor on every device

Cursor is an AI code editor built around agents that write, edit, and run code. Below: how to block Cursor in the browser, on phones and tablets, on your home or school network, and on managed devices.

Start a free trial

AI blocker suite for browsers, desktop, and mobile

  • Blocks prompts and AI apps
  • 100% on-device processing

Cursor

AI coding tools

cursor.comBlocked

6 hostnames in the Nullgen catalog

Every entry also covers its subdomains, so the Cursor app and API are blocked too.

What Cursor connects to

These are the hostnames Cursor uses for its website, its apps, and its API. Each entry is matched as a suffix — blocking cursor.com also blocks every subdomain of it — so the Cursor app cannot slip through on a hostname that is not listed. Shared hosts that other products need are deliberately left out.

Hostnames blocked for Cursor
HostnameRole
cursor.comMain website
api2.cursor.shApp, API, or content host
api3.cursor.shApp, API, or content host
api4.cursor.shApp, API, or content host
cursor.shApp, API, or content host
repo42.cursor.shApp, API, or content host

Block Cursor in the browser

Free: Nullgen browser extension

The Nullgen extension stops typing and pasting into the Cursor 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 Cursor site. These snippets use the official Chrome, Edge, and Firefox policy names.

{
    "URLBlocklist": [
        "api2.cursor.sh",
        "api3.cursor.sh",
        "api4.cursor.sh",
        "cursor.com",
        "cursor.sh",
        "repo42.cursor.sh"
    ]
}

Chrome and Edge treat a bare hostname as the host plus every subdomain.

Need every AI tool in one file, or a .reg or macOS profile?

Open the free policy generator

Block the Cursor app on phones and tablets

Nullgen mobile app

The Nullgen app blocks Cursor 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

  1. 1Open Settings → Screen Time → Content & Privacy Restrictions and turn restrictions on. This covers Cursor in Safari and in apps that use Apple’s web filter.
  2. 2Under Web Content, choose Limit Adult Websites — the setting that lets you deny cursor.com by name.
  3. 3Under Never Allow, add cursor.com. Safari and apps that use Apple’s web filter will refuse it.
  4. 4To keep the Cursor 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

  1. 1Open Family Link, choose the child, then Controls → Content restrictions → Google Chrome — where Cursor can be blocked by site.
  2. 2Choose Only allow approved sites, or add cursor.com under Blocked sites.
  3. 3Under Controls → App limits, block the Cursor app, or require approval for new installs from Google Play.

Block Cursor on your home or school network

A DNS blocker such as Pi-hole, AdGuard Home, NextDNS, or pfBlockerNG blocks Cursor for every device on the network — laptops, phones, consoles, and the Cursor app — without installing anything on them. Subscribe to the Cursor file from the public blocklist, or paste the rules directly.

AdGuard Home, uBlock Origin, and Brave rules

||api2.cursor.sh^
||api3.cursor.sh^
||api4.cursor.sh^
||cursor.com^
||cursor.sh^
||repo42.cursor.sh^

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 Cursor on managed devices

Schools and companies can block Cursor 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 Cursor

How people use Cursor

Cursor is an AI code editor: a desktop application for Mac, Windows, and Linux built around agents that write and change code, plus cloud agents that run tasks away from the laptop and an iPhone app for managing them. Cursor publishes its network requirements for enterprises, and its documentation lists the API hosts the editor uses.

What makes Cursor hard to block

Cursor runs its product on cursor.com and its backend on cursor.sh, and its enterprise network documentation names the specific API hosts — api2, api3, api4, and repo42 under cursor.sh — all of which are on this list. Blocking them stops the editor’s AI features, the cloud agents, and sign-in.

The thing a browser-based block misses is the editor itself. Cursor is a desktop application, not a website, so a browser extension or browser policy never sees it; only the DNS and device-level methods on this page affect it. The editor also works offline for ordinary editing, so a blocked Cursor still opens — it just cannot reach its AI.

On a managed Mac or Windows laptop, an MDM profile that blocks the cursor.sh hosts disables the editor’s AI features and sign-in. On a home network, a DNS blocker does the same for every computer on it. Cursor’s own documentation recommends allowing *.cursor.sh wildcard, which is the mirror image of the block here.

Questions about blocking Cursor

  • Does a browser block stop Cursor?

    No. Cursor is a desktop application. Only a DNS or device-level block reaches it, by cutting off the cursor.sh API hosts it uses for AI features and sign-in. Cursor’s download page offers macOS, Windows, and Linux builds, all of which use the same hosts.

  • Which hostnames does Cursor’s own documentation list?

    Cursor’s enterprise network guide names *.cursor.sh and the specific hosts api2, api3, api4, and repo42.cursor.sh, plus cursor.com for downloads. All of them are on this page. Cursor’s network configuration guide is linked below.

  • Does blocking Cursor stop the Cursor iPhone app?

    Yes, at the DNS or device level. The app connects to the same cursor.sh and cursor.com hosts. The Cursor iOS app’s App Store listing describes managing agents from a phone.

  • Does the free Nullgen extension block Cursor?

    Yes. The free extension blocks the prompt box on Cursor 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 Cursor 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 Cursor 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 Cursor that is useful when blocking or managing it.

Block Cursor today

Start with the free browser extension. Add Nullgen Pro when you need the Cursor app blocked on phones, tablets, and desktops, with approvals for the people who really need it.