Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/netlify/context-and-toolsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/netlify/context-and-tools/netlify-access-control)<a href="https://agentmods.dev/rules/netlify/context-and-tools/netlify-access-control"><img src="https://agentmods.dev/badge/rules/netlify/context-and-tools/netlify-access-control/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/netlify/context-and-tools/netlify-access-control"><img src="https://agentmods.dev/badge/rules/netlify/context-and-tools/netlify-access-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00164 | $0.03192 |
| Opus 5.5 | $0.00066 | $0.01277 |
| Sonnet 5.5 | $0.00033 | $0.00638 |
| Haiku 4.5 | $0.00016 | $0.00319 |
Grade C, and why
netlify-access-control scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
<!-- system: agent-context/access-control/system.md — human-owned, merged by ctx-gen; edit system.md, not this section --> Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
This skill routes you to the correct protection layer. It does not teach each one. **These settings have no public API, CLI command, or MCP tool.** Never curl `api.netlify.com` or read local auth tokens to inspect or cha How it starts
The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Netlify access control — pick the protection layer
This skill routes you to the correct protection layer. It does not teach each one. These settings have no public API, CLI command, or MCP tool. Never curl api.netlify.com or read local auth tokens to inspect or change them — give the user the dashboard path and checklist. On failure, report what you tried and stop.
First: disambiguate "auth" — three unrelated layers
Users constantly conflate these. Identify which one is meant before recommending anything.
- Netlify Identity — "who is this user inside my app." Issues
nf_jwt. → route to the netlify-identity skill; not covered here. - Password Protection / project visibility — "can this request load the site at all." Covered here.
- Team/Org SAML SSO — "can you log in to the Netlify dashboard." Gates dashboard access; also underlies team-login site protection.
Sessions are separate. The same provider (e.g. Google) can appear twice unrelated — Identity OAuth for app users vs. SAML IdP for team members.
Double-login footgun: a Password-Protection/team-login perimeter session and an Identity app session have no bridge — no shared cookie, no header forwarding, no JWT exchange. Don't try to wire them together. For the combined layered pattern and its tradeoffs, see references/two-layer-pattern.md. The Netlify login itself does reach app code: on a private project or with team login protection, functions and edge functions receive the signed-in Netlify user as context.user — if every app user can pass that login, it is the app's identity and no second login is needed.
Want an internal app with a single sign-in (no double login)? First ask who uses it:
- They can pass the project's Netlify login → Private project (Credit-based plans; Pro for anyone beyond the Team Owner) or team login protection (Enterprise), and use
context.userin functions for per-person behavior. - They can't (e.g. employees without Netlify seats) → Auth0 extension federating to the corporate IdP, before the two-layer stack.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +18 lines · +14 tokens per session 61e33d88bfb0
- 2mo ago Changed · +18 lines 3f1175141ec6
- 2mo ago Changed · -47 lines · +13 tokens per session ae2d808b4878
- 3mo ago First seen · 166 lines · 137 tokens per session scan C c6d1a24b47d0
netlify-access-control is a cursor rule published in the GitHub repository netlify/context-and-tools (58 stars, last pushed today), licensed MIT. It adds 164 tokens to every session and 3,192 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it C with 2 findings (hidden instructions, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
netlify-access-control compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| netlify-access-controlnetlify/context-and-tools | Cursor rule | 58 | today | MIT | C | 164 | Cursor |
| aws-ecssanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 8d ago | CC0-1.0 | A | 2,640 | Cursor |
| log-watchbriiirussell/cybersecurity-skills | Cursor rule | 542 | yesterday | MIT | A | 184 | Cursor |
| beanstalk-deploypr-pm/prpm | Cursor rule | 125 | 1mo ago | MIT | A | 0 | Cursor |
| deploymentlacymorrow/paperclip-hub | Cursor rule | 16 | 2d ago | MIT | A | 0 | Cursor |
| advisor-routingmicrosoft/azure-skills | Cursor rule | 1.7k | today | MIT | A | 37 | Cursor |
| aws-rds-best-practicesbeettlle/CursorRules | Cursor rule | 2 | 15d ago | none | A | 0 | Cursor |