Keyword checks
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
A site can answer 200 and still be broken. A keyword confirms people see what they're supposed to see.
What it’s for
Many failures don’t change the status code: a blank page, WordPress’s “Error establishing a database connection”, a maintenance mode someone forgot to turn off or a site defaced by an attacker. They all return 200. With a keyword, the monitor goes down if the text isn’t there.
How to set it up
- Open the HTTP monitor (or create one) and go to Settings.
- In Expected keyword, type the text.
- In Condition, choose Must contain or Must not contain.
- Save. The next check already uses it.
Examples
| Site | Condition | Text |
|---|---|---|
| Online shop | Must contain | Add to cart |
| Health API | Must contain | "status":"ok" |
| WordPress | Must not contain | Error establishing a database connection |
| Any site | Must not contain | Maintenance |
How it’s compared
- We search the response body as it arrives, without running JavaScript. If a script adds the text in the browser, we won’t see it: pick text that’s in the original HTML (Ctrl U in the browser shows the source).
- Case doesn’t matter:
add to cartfinds “Add to cart”. - We read the first 500 KB of the response. If the text is further down, pick something that appears earlier.
If the monitor goes down because of the keyword
The check details say Falta la palabra clave "…" (the keyword is missing) or Apareció "…" (the forbidden text appeared). Open the URL in your browser, look at the source and confirm the text is still the same: a redesign or a translation change also breaks it.