Keyword Monitoring
Monitor your web pages for specific keywords and phrases. Get alerted when content changes unexpectedly — even when the HTTP status code says everything is fine.
How to Set Up Keyword Monitoring
Open your monitor settings
Scroll to Keyword Rules
Add a keyword rule
- Must contain — alert if the keyword disappears from the page
- Must not contain — alert if the keyword appears on the page
Save your monitor
Must Contain vs Must Not Contain
Choose the right mode based on what you want to detect:
Must contain
Use when you expect specific content to always be present. Example: your checkout page must contain "Pay now". If it disappears, something is broken.
Must not contain
Use when certain content should never appear. Example: your homepage should never show "Something went wrong" or "500 Internal Server Error".
How Detection Works
Keyword monitoring uses the same reliability mechanisms as uptime monitoring:
- Case-insensitive — "Sign In", "sign in", and "SIGN IN" all match
- Full HTML body — checks the entire page source, not just visible text
- Multi-region majority rule — a violation must be confirmed by more than 50% of your monitoring regions
- Two-check confirmation — the first violation is marked as "pending". Only if it persists on the next check is an incident created
Common Use Cases
Detect error pages returning 200
Many frameworks return HTTP 200 with an error message in the body. Add a "must contain" rule for expected content like your brand name or a key heading.
Monitor for defacement
Add a "must contain" rule for your brand name or logo text. If someone defaces your site, you'll know immediately.
Track product availability
Add a "must not contain" rule for "out of stock" or "currently unavailable". Get alerted when inventory issues affect your product pages.
Verify after deployments
Add rules for critical UI elements: "Sign in", "Add to cart", "Subscribe". Catch broken deployments that remove key functionality.
Incidents and Alerts
When a keyword rule is violated (confirmed by two consecutive checks), upsonar creates a keyword_mismatch incident. The incident includes:
- Which keyword rule was violated
- Whether the keyword was expected but missing, or unexpected but found
- Which monitoring regions detected the violation
- Full incident timeline
Alerts are sent through your configured notification channels (email, Telegram, webhooks) — the same as uptime and dependency alerts.