A gambling blocker you unlock with a physical key.

Website · App Store · Privacy · Report a vulnerability

Most blockers can be undone by the same person who set them up, in about thirty seconds, at exactly the moment they most want to. That is the moment Pawl is built for.

Pawl blocks sportsbook, casino and other apps and websites you pick, using Apple's Screen Time. There is no unlock button anywhere in the app. To lift the block you need a physical FIDO2 security key (a YubiKey, for example) that you plugged in once and then put somewhere hard to reach: a friend's house, your car, a drawer at work. Even with the key, you wait fifteen minutes before anything opens, and the block comes back on by itself.

A real example: it is 1am, the game is on, and you open DraftKings. You see Pawl's block screen. The key is at your sister's place across town. By the time you could get it, and then wait out the fifteen minutes, the urge has usually passed. That is the whole idea.

Read this before you trust it with anything.

- iOS lets the owner of a phone turn Screen Time off. No app can stop that. Pawl can only notice it the next time it runs and, if you have a sponsor, push them an alert. For a real lock, a sponsor sets the Screen Time passcode in person and keeps it (the "hard lock" flow). iOS enforces that passcode, not Pawl.

- The key check is simple. Pawl asks iOS for a security key assertion and

checks that the credential ID matches the key you registered. It does

not verify the assertion's signature. On a normal, non-jailbroken

iPhone, iOS itself talks to the key, so this proves the key was physically

there. It is not a cryptographic proof, and it is the first place a reviewer

should look. See Pawl/Services/SecurityKeyService.swift.

- The clock is not locked yet. Code to require automatic date and time

exists (ShieldService.setClockLock) but nothing calls it yet. Until it is switched on, moving the phone's clock forward may shorten the cooling off wait. This has not been tested either way.

- Debug builds have developer buttons. "Skip the wait", "simulate

sponsor approve" and "allow deletion" exist for testing. They sit inside

#if DEBUG, which is only switched on in the Debug build setting, so they are not in the App Store build. If you build Pawl yourself in Debug, you get them. That is on purpose: it is your own phone.

- No blocklist is complete. Pawl ships about 4,000 gambling domains. New sites appear every week.

- A determined person can get around any blocker on a phone they own (another phone, a laptop, a friend's device). Pawl makes the 1am version slow. It does not make it impossible.

- Most of the code has no automated tests. The unlock loop does. The rest was tested by hand on real phones.

- No reproducible builds. You cannot prove the App Store binary was built from this exact source.

- Pick what to block. Apps and websites, through Apple's own Screen Time picker. Pawl never learns the names of the apps you pick. Apple hands it an opaque token.

- Register a security key. Tap it to your phone once. Then put it somewhere that takes real effort to reach.

- The shield goes on. While a commitment is active, Pawl also turns on Screen Time's "block app deletion", so you cannot delete Pawl to get out.

- When you want out, you tap the key, then wait out a 15 minute cooling off period. You can make the wait longer at any time. Making it shorter is itself delayed. After the grace window (30 minutes by default) the shield comes back on by itself.

- Optional sponsor. A person you trust links to you with an invite code. Then every unlock also needs their approval. They get a push alert if Screen Time is turned off, or if your Pawl has not checked in for 24 hours (which usually means it was deleted).

- Your clean day streak survives deleting the app. It lives in your iCloud, not on the phone.

Relapse is treated as part of recovery. The relapse log is private to you, and nothing in the app scolds you for using it.

Every Supabase table has row level security turned on. That means the database

itself refuses to hand one person's rows to another. The rules are in

supabase/schema.sql and supabase/migrations/.

The Supabase URL and "anon" key in Pawl/SupabaseConfig.swift are meant to be

public. They are inside every copy of the app anyway. The row level security

rules are what protect the data, not that key.

The best thing a stranger can do today is read. Start here:

Security fixes are explained in a comment at the spot where they happened.

Search the code for SECURITY FIX to find them.

Some code comments point to planning documents (for example docs/12 or

docs/16) that are not in this repo. Those were business planning notes. The

requirements (docs/01_SRS_Pawl.md) and design (docs/02_SDS_Pawl.md) are

here.

git clone https://github.com/jasonepage/Pawl.git

open Pawl/Pawl.xcodeproj

You need Xcode 26, an iPhone on iOS 18 or later (Screen Time does not work in

the simulator), and a paid Apple Developer account. Apple must also approve

the Family Controls entitlement for your team before the blocker will run

outside development. The security key needs a domain you own with an

apple-app-site-association file; change PawlConfig.relyingPartyID to it.

Setup steps are in docs/04_Xcode_Setup_Checklist.md,

docs/05_Security_Key_Setup.md and, for the backend,

docs/09_Supabase_APNs_Setup.md and docs/10_EdgeFunctions_Push.md.

Run the tests in Xcode with Product, then Test.

Bug fixes, tests and documentation are welcome. Keep the MPL notice at the top of every new source file. Anything that touches the user's words on screen should stay plain and kind: the people using this are having a hard time, and the app must never shame anyone for a relapse.

A security finding goes to SECURITY.md, not a public issue.

Mozilla Public License 2.0, the same as Seal. You may read, audit, run and fork this. Changes to Pawl's own files have to be published under the same license. MPL rather than GPL on purpose: GPL family licenses conflict with the App Store's terms, and a blocker that cannot ship on the App Store helps nobody.

One exception: most of the gambling blocklist comes from HaGeZi's lists and stays under GPL-3.0. See BLOCKLIST_LICENSE.md.