This tool follows common crawler logic: choose the most specific User-agent group; among matching rules, the longest match wins; ties favor Allow. Supports * and $ wildcards.
How to use in WordPress: Add a “Custom HTML” block and paste this file’s contents, or save as robots-txt-tester.html and embed via an iframe on a tools page. No server code required.