Prohibited Terms Scanner
Getting Started
In the admin area of your site, navigate to Prohibited Terms Scanner. The header has six tabs: Scanner, Results, External Links, Omitted Sources, Errors and Settings.
Which tabs you see depends on your access level:
- Administrators: See every tab and can change settings.
- Scan roles: See Scanner, Results, External Links and Omitted Sources. They can run scans, mark results, add notes and omit sources.
- View roles: See Results and External Links only, read-only.
You choose the Scan and View roles on the Settings tab. A count badge on the admin menu and the Results tab shows how many flagged results still need attention. Hover over the question mark next to any field to see a short description.
The quickest way to get going: add your terms on the Scanner tab, click Save Terms, then click Start Full Scan and review what it finds on the Results tab.
Scanner
The Scanner tab has three boxes: Terms & Phrases, Search In and Run Scan.
Terms & Phrases
Click Edit Terms to open the list. The number next to it shows how many terms you have saved. When terms are already saved, this section starts collapsed.
- Paste Terms (One Per Line): Paste one term or phrase per line, then click Add Terms. Terms already in the list are skipped.
- Case Sensitive: Each term has its own toggle. When on, the term only matches the exact letter casing you entered.
- Strict: Each term has its own toggle. When on, the term only matches whole words, so "class" will not match "classic."
- Save Terms: Saves your list. A reminder appears if you have unsaved changes.
- Clear All Terms: Removes every term from the list.
New terms use the Case Sensitive and Strict defaults from Settings > Matching. When a scan starts, the list collapses into a row of term pills, with a CS or Strict badge on terms that use those options. Click Edit to open it again.
Search In
Check the locations you want to search. The locations checked by default come from Settings > Search Locations.
- Content: Post Title, Main Content, Excerpt, Comments, Taxonomy Term Name and Taxonomy Term Slug. Main Content is scanned with its shortcodes expanded, so terms output by a shortcode are found too.
- Media: Media Filename and Media Alt Text.
- Files: File Content, which reads the text inside .txt, .csv, .docx and .pdf files in your Media Library. It is off by default because it is slower. If the ERI File Library plugin is active, its titles, filenames, descriptions and file content appear here as well.
Titles, content and excerpts are only searched in the post types checked under Settings > Post Types & Taxonomies, and only published content is scanned. Only approved comments are scanned.
Run Scan
Click Start Full Scan. A progress bar shows which location is being scanned, roughly how many items have been checked, how many matches have been found so far, and the elapsed time. The scan runs in small batches so large sites do not time out.
- The scan only runs while the page stays open. Closing or leaving the page stops it.
- Click Cancel Scan to stop early. Results found so far are kept.
- If a batch fails, the error is shown under the progress bar and logged on the Errors tab, and the scan moves on to the next location.
- When an administrator runs a full scan, previously flagged (unresolved) results are cleared first, so the results reflect your site as it is now. Scans run by Scan roles add to the existing results instead.
- Results you have marked as OK are never flagged again for the same match.
- Under the button you will see how long the last scan took and when it finished.
Click View Results to go to the Results tab.
Results
Open Summary by Term at the top to see how many times each term was found.
The results table has two tabs: Flagged and Marked as OK. The counts on these tabs update as soon as you act on a result. Use the term and location dropdowns and click Filter to narrow the list. Locations are broken down by post type, for example "Main Content (Page)."
Each result shows:
- Term/Phrase: The term that was found.
- Context: The surrounding text with the match highlighted. For PDFs, the page number is shown when Record PDF Page Numbers is on.
- Location: Where it was found, such as Main Content or Media Alt Text.
- Source: The title of the post, comment, term or file, with a View Source link. For posts, comments and terms, the link opens the page and highlights the term with a blinking marker so you can spot it. Taxonomy term links are only shown to administrators.
- Note: Type a note and click Save Note to keep track of what needs to be done.
- Date: When the match was found, in your site's date and time format.
Actions
- Mark as OK: Moves the result to the Marked as OK tab. It will not be flagged again in future scans.
- Unignore: On the Marked as OK tab, moves the result back to Flagged.
- Check Usage: For media filename and alt text results. Lists the pages that use the file, or tells you it is not used anywhere and is safe to omit.
- Clear: Removes the result. Use this once you have fixed the content. If the result has a note, you are asked to confirm first.
- Omit Source: Excludes that post, page or file from all future scans and clears its flagged results. See Omitted Sources below.
Clear All in the toolbar clears every result on the current tab. View roles can see results, notes and links, and use Check Usage, but cannot change anything.
External Links
The External Links tab lists every link to another website found in the published content of the post types you scan. Click Scan External Links to build or refresh the list.
A link is flagged when one of your terms appears in its URL (not counting the domain), its anchor text, or the title of the page it was found on. Each term's Case Sensitive and Strict options are respected.
- Link: The external URL.
- Anchor Text: The clickable text of the link.
- Found On: The page that contains the link.
- Flagged Term: The term that caused the link to be flagged, if any.
- Note: Your notes, which are kept when you scan again.
Use All Links and Flagged Only to switch views. When you scan again, links that are no longer on your site are removed from the list. Omitted sources are skipped.
Omitted Sources
Omitted sources are skipped in every scan. Use this for content that still exists on your site but is unpublished, private or never meant to be public. There are three ways to omit something:
- Click Omit Source on a result on the Results tab.
- Hover over an item on your Posts, Pages or Media list and click Omit from Terms Scanner.
- Select several items on those lists and choose Omit from Terms Scanner from the Bulk actions menu. Choose Unignore from Terms Scanner to include them again.
The Omitted Sources tab lists everything you have omitted, with its name and type. Click Remove to include it in scans again.
Errors
The Errors tab is for administrators. Anything that goes wrong during scans, imports and other operations is logged here, so one failure never silently stops the rest of a run. Examples include missing or unreadable files, PDFs that cannot be parsed, shortcodes that throw errors while content is scanned, and scheduled scan results.
Each entry shows the Context, the Message, any Details (such as the file or post being processed) and the Time. If a scan times out or hits a fatal error, the log records the item that was being scanned so you know where to look. Click Clear Error Log to start fresh.
Settings
The Settings tab is for administrators. Click Save in the header bar after making changes, or press Ctrl+S (Cmd+S on Mac). A reminder appears if you have unsaved changes. The header bar also shows the plugin version and links to this guide, the developer docs and support.
Search Locations
- Locations Included by Default: The locations checked here are preselected on the Scanner tab and used by scheduled scans.
Post Types & Taxonomies
- Post Types: The public post types included when scanning titles, content and excerpts.
- Taxonomies: The public taxonomies whose term names and slugs are scanned.
- Only Scan Public Pages: Skips posts that logged-out visitors cannot open, such as pages restricted with Deadbolt.
Matching
- Case Sensitive by Default: Applied to newly added terms. Each term can still be changed on its own.
- Strict (Whole Word) Matching by Default: Applied to newly added terms. Each term can still be changed on its own.
- Snippet Padding: How many characters to show on each side of a match in the Context column. The default is 60.
Performance
- Batch Size: How many items are processed per request. Lower this if scans are timing out. The default is 20.
- Record PDF Page Numbers: Scans PDFs page by page so results show the exact page. This is slower, especially for large PDFs. When off, PDFs are still scanned, without page numbers.
Save/Upload Warning
- Warn Before Saving or Uploading: Warns editors when a post they are saving, a file they are uploading, or alt text they are editing contains a monitored term. After a file is uploaded, its content is checked too, and a notice appears on the file. The warning never blocks anyone; they can confirm and continue.
- Monitored Terms (One Per Line): The terms to watch for. This list is separate from your scan terms. Paste one per line and click Add Terms, or Clear All Terms to empty it.
Scheduled Scanning
- Enable Scheduled Scanning: Runs a full scan in the background through WP-Cron, using your saved terms and the default locations above. You do not need to keep any page open.
- Frequency: Daily, weekly or monthly.
Below these, you will see when the next scan is scheduled and when the last one ran, with how many results it found. Scheduled scans clear unresolved results first, just like a full scan by an administrator. Very large sites may need a longer PHP execution time for cron requests, so test this on a staging site first.
Access
- Roles That Can View Results: Can open the Results and External Links tabs but cannot run scans or change anything.
- Roles That Can Scan: Can run scans, mark results, add notes, manage omitted sources and view results, including through the front-end shortcode.
Administrators always have full access. The Errors and Settings tabs are always limited to administrators.
Advanced
- Remove All Plugin Data on Uninstall: When you delete the plugin from the Plugins page, permanently remove all settings, terms, scan results, notes, omitted sources and the error log. It is off by default. Scheduled scans are always unscheduled when the plugin is deleted.
- Download Settings: Exports your terms and settings as a JSON file, for a backup or to copy to another site. Scan results are not included.
- Upload Settings: Imports a JSON file exported from this plugin. This overwrites your current terms and settings. Files exported from version 1.2.x are also accepted.
- Reset Settings: Resets every setting to its default. Your terms, scan results, notes and omitted sources are kept.
Front-End Shortcode
Add [prohibited_terms_scanner] to any page to give staff a scanner on the front end, without needing access to the admin area. Only administrators and Scan roles can use it; anyone else sees a message that they do not have permission.
The shortcode includes the same Terms & Phrases, Search In and Run Scan boxes as the Scanner tab, the Summary by Term, and three panels:
- Results: Flagged and Marked as OK results with the same filters, notes and actions as the Results tab, plus Clear All.
- Omit Public Pages: Lists the published, public content in the post types you scan. Click Omit Page to skip a page in future scans, or Un-Omit to include it again.
- External Links: The external links list, with All Links and Flagged Only filters.
It is styled to match the admin screens and adjusts to narrow content areas. Scans run from the shortcode by non-administrators add to the existing results rather than clearing them first.
Recommendations
- Use Strict for short terms that often appear inside longer words, to cut down on false matches.
- Use Mark as OK for matches that are fine in context, such as a quote or a proper name, so they stop coming back.
- Keep File Content off for routine scans on sites with many large PDFs, and run it separately when needed.
- If scans time out, lower the Batch Size and check the Errors tab for the item that was being scanned.
- Omit drafts, archives and private resources you never intend to publish, instead of clearing their results after every scan.
- Turn on the Save/Upload Warning with your most important terms to catch problems before they are published.
This plugin never edits or removes your content. It finds matches so you can review and fix them yourself.
