Scope

Choose what to block

A blocker needs a boundary before it needs a blocklist. The boundary says which devices are covered, which moments it is meant to interrupt, what counts as gambling content and who is allowed to loosen it. Written down, it becomes the specification you build and test against.

Output of this page: a written boundary of five or six sentencesNot decided here: code, language or platform details

Write the boundary as one paragraph

A useful boundary reads something like: "This blocker covers my laptop and phone. It stops gambling operator sites and odds pages from loading in any browser. I cannot switch it off for three days after asking, and my sister has to confirm the request." Each sentence maps to a technical decision: the devices decide the layer, the content decision decides the list, the key decision decides the disable logic. If you cannot write the paragraph, the project is not ready for code.

Keep the paragraph honest. A boundary that claims to cover "all my devices" when one of them is a work laptop you cannot administer will fail on the first evening. Name only what you can actually control.

Compare the places a blocker can sit

Blocking happens somewhere between the keyboard and the network. Each position sees a different slice of traffic and leaks in a different way. The table lists the common options for a personal project; mixed approaches, such as a hosts file plus an extension, are normal and often the right answer.

Blocking layers for a personal gambling blocker
LayerWhat it coversMain gapSkill and access needed
Hosts fileEvery app on one device that resolves names through the operating systemNo wildcards, so every subdomain must be listed; browsers using encrypted DNS may ignore it; needs administrator rights to edit, which also means it is easy to undo for the administratorText editing with elevated rights
Local DNS resolverEvery app on the device or, if run on a router, every device on the home networkChanging the DNS setting or switching to mobile data bypasses it; encrypted DNS inside apps can bypass itRunning a small service, basic networking
Browser extensionPages and requests inside one browser profile, with pattern matching and the option to show a pause pageAnother browser, a private window with extensions disabled, or uninstalling the extensionJavaScript, JSON and the extension APIs
Device-level filter on mobileAll traffic on a phone through a local filtering interface where the platform permits itPlatform restrictions vary a great deal; the user can usually revoke the permission unless device management is in placeNative mobile development and platform documentation
Built-in parental or screen-time controlsApps and categories of sites defined by the operating system vendorCategory lists are opaque and not under your control; a known passcode removes everythingNone beyond settings

The right starting layer follows the moment you want to interrupt. A late-night laptop habit is well served by an extension that shows a calm pause page. A phone reflex points to a device-level or network-level answer, because the phone will have several browsers and apps.

Decide what counts as gambling content

Operator sites, where money is staked, are the core of any list. Beyond them the boundary gets blurry, and the blur is where consistency matters. Decide in advance on each category:

  • Odds, tips and comparison pages. They do not take bets but they prime the urge. Many people block them.
  • Lottery results and draw pages. Harmless for some, a trigger for others. Decide for the person, not in general.
  • Streams and forums about betting. Often hosted on general platforms that cannot be blocked wholesale. A keyword rule inside a browser extension can help here; a DNS layer cannot.
  • Games with chance-based purchases. Some people include them, since the mechanics are similar. Others keep the boundary to money-staked gambling.

Whatever you choose, write one sentence that a future you can apply without a debate: "Block anything whose main purpose is placing or promoting a wager" is a workable example.

Decide who holds the key

A blocker that its owner can disable in seconds provides almost no protection, because the urge is faster than the sense of regret. Three arrangements are common and can be combined:

Waiting period
A disable request takes effect only after a set delay. Days work better than hours. The code for this is small and is shown on the build page.
Second person
A trusted person holds the administrator password or must confirm a disable request. This moves the barrier from software to a relationship, which is usually stronger.
No key at all
Some people set up a blocker on a device and ask someone else to administer it entirely. This is the firmest arrangement and the one most dependent on trust.

Accept the gaps in writing

Every boundary has edges. A list of the known bypasses, written next to the boundary, serves two purposes: it keeps you from over-promising, and it becomes the test plan on the checks page. Typical entries include another browser, a private window, mobile data instead of home wifi, a borrowed device, a new domain not on the list and simply uninstalling the blocker. Against each one, note whether you will close it with code, with a person, or accept it.

A blocker adds friction; it does not guarantee protection. Writing that sentence at the top of your boundary keeps expectations realistic and makes it easier to ask for the human help described on the safer choices page.