Trust center
Security at SafeScript
SafeScript asks to run first on your pages, so you should be able to check what it does before you trust it. This page says how the service runs, exactly what our install script sends, who else handles data, and how to report a problem. Where you can check a point yourself, we show you how.
Infrastructure
Where SafeScript runs
- Servers
The whole service, pages, API and install script, runs as one Cloudflare Worker on Cloudflare's network. There are no servers of our own to patch.
- Database
Accounts, sites and monitoring history are kept in Cloudflare D1. Cloudflare documents that everything stored in D1, including live and inactive databases and their metadata, is encrypted at rest with AES-256, and that traffic between a Worker and D1 uses TLS. Cloudflare's D1 data security page
- In transit
Every page and API call is served over HTTPS. Our responses carry
Strict-Transport-Security: max-age=31536000; includeSubDomains, so browsers that have visited once only use HTTPS for a year. www.safescript.app redirects to safescript.app. - Sign-in
There are no SafeScript passwords. You sign in with a one-time email link, which expires after 15 minutes and is stored only as a hash, or with Google (we ask Google for your name, email address and picture only).
The sign-in cookie is
HttpOnly,SecureandSameSite=Lax, carries a signed session id, and lasts 30 days from your last visit. - Payments
Card details are entered on Stripe's own checkout and billing pages, never on ours. We keep Stripe's customer and subscription ids on our server; they are never sent to your browser.
- Our email
Email from @safescript.app is protected against spoofing with a DMARC policy of
p=reject.look up the TXT record of
_dmarc.safescript.app. - Certifications
SafeScript itself holds no security certification and has not had an outside audit yet. We would rather say so than let a logo imply it. Cloudflare and Stripe publish their own compliance reports; those cover their services, not ours.
The install script
What the install script sends
The install script runs in your visitors' browsers. It decides whether each outside script, frame and data request is one you approved, and reports what it saw to SafeScript. This is everything it sends, read from the source of the current released version, which you can read in full.
What it sends
- Outside addresses it blocked or has not seen approved, as the address's origin (like
https://cdn.example.com) and the file path, never the part after a question mark. - The page path it happened on (like
/checkout), without the query string. Our server also replaces long numbers and ids in the path with:id. - Which script file loaded which other script file.
- The shape of the page's forms: where each form sends, and each field's type, name and autofill hint. Never what is typed in it.
- When an outside script reads a password or card field: which script, and whether it was a password or card field.
- The device kind (phone or computer, from the browser's user agent text) and a random id for the browser tab.
What it never does
- Never sends or stores what anyone types into a field.
- Never sets or reads cookies.
- Never uses localStorage. Its three small notes live in sessionStorage, which the browser clears when the tab closes.
- Never runs text as code: there is no
evaland nonew Functionin it. - Never sends query strings, page titles or page text.
- Never sends anything to a company other than SafeScript.
The exact report format
Reports are sent with the browser's navigator.sendBeacon as one JSON text body to /api/collect, at most 40 events at a time, about two seconds after something happens and when the page is closed. If a browser refuses the beacon, the same body goes by fetch with cookies left out. Our collect endpoint does not read cookies.
| Field | What it holds |
|---|---|
k | Your site's install key, the same one in your install line. |
v | The report format version (2). |
d | Device kind: ios, android, desktop or other. |
s | A random id for this browser tab (12 random bytes), kept in sessionStorage. It lets us count how many visits saw a page change, each once. Our server stores only a hash of it. |
e | The events. Each has t (the kind), o (the outside origin), p (the page path), x (a short detail), ms (how long a block took) and n (how many times, when it repeated). |
| Event kind | When | Detail sent |
|---|---|---|
blocked_script, blocked_frame, blocked_request, blocked_worker | A load or data request to an address you did not approve was stopped. | How it was tried (like fetch) and the address's path. |
new_origin | An address not yet approved, while the site is learning or reporting only. | Script, data request or frame. |
chain | A script file put another script on the page. | Both file addresses, without query strings. |
shape | Once after the page loads, and up to three more times if forms, fields or frames change. | Form targets, field types, names and autofill hints, frame origins. |
field_read | An outside script read a password or card field that held something. | password or card. Not the value. |
integrity | A file you pinned failed its fingerprint check. | The file's address. |
csp | Your browser rules (CSP) refused something. | The rule and whether it was enforced or only reported. |
heartbeat | At most once every 10 minutes per tab. | The protection mode. |
Two other requests go to SafeScript: the script reads your site's settings (approved addresses, mode) from /g/KEY.json, and the badge, if you show one, reads its status from /api/badge/HOST with cookies left out. Like any web server, ours sees the visitor's IP address with each request. We don't store it with any report: we keep only the country Cloudflare works out from it, on heartbeat records, for the activity map.
search the published source for document.cookie, localStorage, eval( and Function(. None is there. (The word cookie appears once, in a comment saying the tab id is never a cookie.)
Live
Watch it on this page
safescript.app runs the same install script our customers install, in blocking mode. Below is every report it sends from this page, captured as it leaves your browser. Type something in the field, then press the button: a test script on this page tries to load a file from an address our site never approved and to send what you typed to it.
The test address is skimmer.example, a name reserved for examples that never reaches a real server. Nothing you type here is sent anywhere else.
No report has left this page yet. The script batches reports for about two seconds.
these are real requests from this page, not a sample. Open your browser's developer tools, Network tab, and filter for collect to see the same bodies. The list is read by a small script on this page that notes each report on its way to the browser's sendBeacon, then passes it on unchanged.
Integrity
The pinned install script
New installs get a pinned install line. It points at one released file, like /g/v/VERSION/guard.js, with an integrity fingerprint (SHA-384). Your visitors' browsers refuse to run that file if a single byte differs from the fingerprint, even if someone changed it on our side. Your site's settings load separately, as data that is read and never run.
- A version's name is the first 12 characters of its SHA-384 fingerprint, and our server recomputes the fingerprint from the bytes it serves, so a file that does not match its name is never served.
- Released files are never changed or removed. A new version is a new file and a new line to paste, so a pinned install never changes unless you change the line.
- Every released version, with its date and fingerprint, is listed at
/g/v/versions.json.
Customer data
How customer data is used
- Monitoring
Reports from the install script, your list of approved and blocked addresses, script files you track and their changes are used to protect your site, alert you and fill your dashboard.
- How long
Monitoring history (browser reports, script changes and page changes) is deleted after 30 days on Starter, 90 days on Pro and 365 days on Agency. Your script inventory and approvals stay while the site is in your account.
- Who sees it
The people in your account. Alerts go by email to account owners and members, and to a Slack channel or webhook only if you add one. Your public monitoring record shows only its status, counts and check times.
- Free scans
A free scan opens the public page you name in a browser on our side and lists the outside scripts it loads. The latest scan of a site can appear on a public report page at
/report/HOST; the site's owner can remove that page by putting a file we give them on the site. - AI
When a script file you track changes, an AI model on Cloudflare (Workers AI) writes the plain-English summary from the changed public code; our own rules set how serious the change is, and the model can raise that level but never lower it. Unknown script domains found in scans are looked up through OpenRouter, which receives only the domain and a few short facts read from that public file.
Subprocessors
Other companies we use
These companies handle data for SafeScript, each for one job.
| Company | What for | What it receives |
|---|---|---|
| Cloudflare | Hosting (Workers), the database (D1), sending our email, the browser that runs free scans and makes PDF reports (Browser Rendering), and change summaries (Workers AI). | Everything SafeScript stores and serves. |
| Stripe | Billing: checkout, subscriptions and the billing portal. | Your email address, your account's name and id, and the card details you enter on Stripe's pages. |
| Sign in with Google, if you choose it. Google Analytics on safescript.app's own pages. | Sign-in: Google tells us your name, email address and picture. Analytics: page views on safescript.app, under the cookie rules below. | |
| Measuring our own ads: the Insight Tag on safescript.app's pages, and a server message when someone who arrived from a LinkedIn ad scans, signs up or installs. | Page views on safescript.app under the cookie rules below. For people who arrived from a LinkedIn ad: LinkedIn's click id and, once there is an account, a SHA-256 hash of its email address. | |
| Measuring our own ads: the Reddit pixel on safescript.app's pages. | Page views on safescript.app, under the cookie rules below. | |
| OpenRouter | Looking up script domains SafeScript can't name yet, with a web search. | The public script domain and short facts read from the public script file. Nothing about you or your visitors. |
Cookie rules for our own site. Google Analytics, the LinkedIn Insight Tag and the Reddit pixel load only on safescript.app's public pages, never in the dashboard, admin pages or on your site. In the EU, EEA, UK and Switzerland, or when we can't tell the country, they load only after you click Allow. Elsewhere they load unless you click No thanks. They never load when your browser sends Do Not Track or Global Privacy Control. Change your choice with Cookie choice in the footer.
None of these run on your site. The install script on your site talks only to SafeScript.
Our own pages
Our own site's browser rules
We hold our own pages to what we recommend. Every page on safescript.app is sent with these security headers, and our own install script blocks outside addresses we have not approved.
| Header | What it does |
|---|---|
Content-Security-Policy | Scripts only from safescript.app and the three analytics hosts above; no inline scripts and no eval; data requests only to safescript.app and those analytics services; no plugins; our pages can't be framed by other sites. Violations are reported to us. |
Strict-Transport-Security | HTTPS only, for one year, on every subdomain. |
X-Frame-Options | DENY: no other site can show our pages in a frame. |
X-Content-Type-Options | nosniff: browsers use the file type we declare. |
Referrer-Policy | strict-origin-when-cross-origin: other sites see only that a visitor came from safescript.app, never the full address. |
Permissions-Policy | Camera, microphone, location, payment and USB access are switched off. |
Cross-Origin-Opener-Policy | same-origin: pages from other sites that open ours can't reach into them. |
The headers this page arrived with
Read live from safescript.app by your browser just now:
Reading…
Responsible disclosure
Report a security issue
If you find a security problem in SafeScript, safescript.app or our install script, please tell us privately at security@safescript.app.
What we ask
- Tell us what you found, where, and the steps to see it, with the least data needed to show it.
- Test only against your own account and your own sites. Don't access, change or delete other people's data; if you reach some by accident, stop and tell us.
- Don't run tests that degrade the service for others: no denial of service, spam or social engineering of our staff or customers.
- Give us a reasonable time to fix the problem before you share it publicly, and keep it between us until then.
What we commit to
- We reply to confirm we have your report within 2 business days.
- We keep you updated while we work on it and tell you when it is fixed.
- We will not take legal action against research done in good faith that follows this policy.
- With your permission, we will thank you by name when the fix is out.
We don't run a paid bug bounty yet.
This policy is also linked from our security.txt file.
More
Status and other records
- Status
Checks every minute of the website, the install script and its settings, reports, the database and the scanner, with their history.
- Our monitoring record
SafeScript watching its own site, the same public record our customers get.
- Install script source
The current released file, its fingerprint and every earlier version.
- PCI DSS
How SafeScript helps with the payment page script rules (6.4.3 and 11.6.1), and what it does not do.
- security.txt
Our security contact in the standard format (RFC 9116).
- Privacy
How SafeScript handles personal information.