Tell AI security agents your site is not open for testing, with a check only you can pass.
Security-Testing: not-authorized; check="/.well-known/security-testing/"
An AI security agent asked to test a website usually can't tell whether the owner agreed to it. PorchLight lets the site say no. It adds a response header like the one above and a short notice, and both point to a check the agent can run.
How it works
-
The site posts the notice
The owner sends the header on every response and puts the notice text in HTML comments, robots.txt and security.txt. The notice says testing is not authorized and names the check.
-
The agent reads it first
An AI security agent asked to test the site sees the header or the notice before it sends anything else, and learns there is a check it can run.
-
A real engagement gets a proof
If the testing really is authorized, the AI security agent makes two random values, a code and a proof, and gives both to the owner. The owner publishes the proof at
/.well-known/security-testing/<code>. Only the real owner can put a file there. -
The agent checks
It requests that address and reads the answer:
- Authorized a 200 whose first line is the proof
- Not authorized anything else, a 404 included