# Requesting a scan from sourcecode.dev

Instructions for coding agents. You are helping your user request a free, authorized security scan of their own site. Ask before you change anything. The user sends the final email themselves.

1. **Target.** Ask for the one hostname to scan, whether it is production, the country where the user's organization is registered, and the country where the site is hosted. Stop if the site runs on a platform the user does not control, such as `*.vercel.app`, `*.github.io` or a hosted store builder, or if either country is on the ineligible list in section 9 of https://sourcecode.dev/roe.
2. **Exclusions.** From the repository, list the routes a scanner must not touch: payments, account or data deletion, outbound email or SMS, and third-party webhooks. Let the user edit the list.
3. **Rules.** Read https://sourcecode.dev/roe. Tell the user what will be done, what will not, and what to expect on a production system. Link the original.
4. **DNS.** Propose the TXT record below. Add it only after the user agrees, then check that it resolves.

   ```text
   Name:  _sourcecode-verify.<hostname>
   Value: sourcecode-authorize=<user's email>;until=<30 days from today>
   ```

5. **Email.** Draft a message to `scan@sourcecode.dev` for the user to send from their own mailbox. Open with one or two sentences on who is writing: the user's name, their role, and what the team builds. Then include the hostname, environment, excluded paths, a time window with time zone, and the line "I authorize". Do not send it.

Afterwards, remind the user to tell their team when the scan is scheduled, and to remove the DNS record once it is done.
