{"id":4560,"date":"2026-11-14T07:50:47","date_gmt":"2026-11-14T07:50:47","guid":{"rendered":"https:\/\/digitalbridgehub.com\/acrossysdigital\/?page_id=4560"},"modified":"2026-11-14T07:51:32","modified_gmt":"2026-11-14T07:51:32","slug":"llms-txt-generator-and-validator","status":"publish","type":"page","link":"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/","title":{"rendered":"llms.txt Generator and Validator"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4560\" class=\"elementor elementor-4560\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-35cef22 e-flex e-con-boxed qodef-elementor-content-no e-con e-parent\" data-id=\"35cef22\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fa56078 elementor-widget elementor-widget-shortcode\" data-id=\"fa56078\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<div class=\"aitool-wrapper\">\n    <div class=\"aitool-header\">\n        <h2>llms.txt Generator and Validator<\/h2>\n        <p>Create an llms.txt file from your sitemap, or check an existing one for structure, server and link problems<\/p>\n    <\/div>\n\n    <div class=\"aitool-body\">\n\n        <div class=\"aitool-mode-tabs\" id=\"llms-tabs\">\n            <button type=\"button\" class=\"aitool-mode-tab active\" data-panel=\"gen\">Generator<\/button>\n            <button type=\"button\" class=\"aitool-mode-tab\" data-panel=\"val\">Validator<\/button>\n        <\/div>\n\n        <!-- ===================== GENERATOR ===================== -->\n        <div id=\"llms-panel-gen\">\n            <div class=\"aitool-calc-grid\">\n\n                <div class=\"aitool-card\">\n                    <div class=\"aitool-card-header\">\n                        <span class=\"aitool-card-title\">Site Details<\/span>\n                        <span class=\"aitool-card-badge\">Input<\/span>\n                    <\/div>\n                    <div class=\"aitool-card-body\">\n                        <div class=\"aitool-row\">\n                            <label for=\"llms-g-url\">Website *<\/label>\n                            <input type=\"text\" id=\"llms-g-url\" placeholder=\"example.com\" autocomplete=\"off\" inputmode=\"url\">\n                        <\/div>\n\n                        <div class=\"aitool-row\">\n                            <label for=\"llms-g-name\">Site or Business Name *<\/label>\n                            <input type=\"text\" id=\"llms-g-name\" placeholder=\"Filled in from your homepage after scanning\" autocomplete=\"off\">\n                        <\/div>\n\n                        <div class=\"aitool-row\">\n                            <label for=\"llms-g-summary\">Summary<\/label>\n                            <textarea id=\"llms-g-summary\" rows=\"3\" placeholder=\"One or two factual sentences about what the site offers\"><\/textarea>\n                            <div class=\"aitool-row-hint\">Becomes the quote line under the title. Keep it factual.<\/div>\n                            <div style=\"margin-top: 8px;\">\n                                <button type=\"button\" id=\"llms-g-ai\" class=\"aitool-action-btn\">Write summary with AI<\/button>\n                            <\/div>\n                        <\/div>\n\n                        <div class=\"aitool-row\">\n                            <label for=\"llms-g-intro\">Extra Notes (optional)<\/label>\n                            <textarea id=\"llms-g-intro\" rows=\"2\" placeholder=\"Anything an AI should know, such as service areas or how to describe you\"><\/textarea>\n                        <\/div>\n\n                        <div class=\"aitool-row\">\n                            <label class=\"aitool-check\" for=\"llms-g-optional\">\n                                <input type=\"checkbox\" id=\"llms-g-optional\" checked>\n                                <span>Put articles and secondary pages under \"Optional\"\n                                    <span class=\"aitool-row-hint\" style=\"display:block; margin-top:4px;\">The Optional section tells AI tools which links can be skipped when space is short.<\/span>\n                                <\/span>\n                            <\/label>\n                        <\/div>\n\n                        <div class=\"aitool-buttons\">\n                            <button type=\"button\" id=\"llms-g-scan\" class=\"aitool-btn aitool-btn-primary\">Scan Site<\/button>\n                            <button type=\"button\" id=\"llms-g-clear\" class=\"aitool-btn aitool-btn-secondary\">Clear<\/button>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n                <div class=\"aitool-sticky-panel\">\n                    <div class=\"aitool-card\">\n                        <div class=\"aitool-card-header\">\n                            <span class=\"aitool-card-title\">Overview<\/span>\n                            <span class=\"aitool-card-badge\" id=\"llms-g-status\">Idle<\/span>\n                        <\/div>\n                        <div class=\"aitool-card-body\">\n                            <div class=\"aitool-metric-grid\">\n                                <div class=\"aitool-metric-card highlight\">\n                                    <div class=\"aitool-mc-label\">Pages Found<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-g-m-found\">0<\/div>\n                                <\/div>\n                                <div class=\"aitool-metric-card\">\n                                    <div class=\"aitool-mc-label\">Selected<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-g-m-sel\">0<\/div>\n                                <\/div>\n                                <div class=\"aitool-metric-card\">\n                                    <div class=\"aitool-mc-label\">Links Included<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-g-m-inc\">0<\/div>\n                                <\/div>\n                                <div class=\"aitool-metric-card\">\n                                    <div class=\"aitool-mc-label\">File Size<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-g-m-size\">0 KB<\/div>\n                                <\/div>\n                            <\/div>\n\n                            <div id=\"llms-g-note\" style=\"margin-top: 15px;\">\n                                <div class=\"aitool-card-highlight\" style=\"margin-bottom: 0;\">\n                                    <div class=\"aitool-card-highlight-label\">Awaiting Execution<\/div>\n                                    <div class=\"aitool-card-content\" style=\"color: var(--BodyTxtColor);\">Enter your website and select Scan Site. The tool reads your sitemap, lets you choose the pages to include, then reads each page's title and description to build the file.<\/div>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <!-- Page selection -->\n            <div id=\"llms-g-select\" style=\"display: none; margin-top: 25px;\"><\/div>\n\n            <!-- Output -->\n            <div class=\"aitool-card\" id=\"llms-g-output\" style=\"display: none; margin-top: 25px;\">\n                <div class=\"aitool-card-header\">\n                    <span class=\"aitool-card-title\">Your llms.txt<\/span>\n                    <span class=\"aitool-card-badge\" id=\"llms-g-out-badge\">Editable<\/span>\n                <\/div>\n                <div class=\"aitool-card-body\">\n                    <div class=\"aitool-row\">\n                        <textarea id=\"llms-g-text\" class=\"llms-mono\" rows=\"18\" spellcheck=\"false\"><\/textarea>\n                        <div class=\"gbp-counter\"><span id=\"llms-g-counter\"><\/span><\/div>\n                    <\/div>\n                    <div class=\"aitool-buttons\" style=\"margin-top: 0;\">\n                        <button type=\"button\" id=\"llms-g-copy\" class=\"aitool-btn aitool-btn-primary\">Copy<\/button>\n                        <button type=\"button\" id=\"llms-g-download\" class=\"aitool-btn aitool-btn-copy\">Download llms.txt<\/button>\n                        <button type=\"button\" id=\"llms-g-validate\" class=\"aitool-btn aitool-btn-secondary\">Validate This File<\/button>\n                    <\/div>\n                    <div class=\"aitool-card-highlight\" style=\"margin: 18px 0 0;\">\n                        <div class=\"aitool-card-highlight-label\">Where to put it<\/div>\n                        <div class=\"aitool-card-content\" style=\"color: var(--BodyTxtColor);\">Upload the file to your site's root folder so it loads at yourdomain.com\/llms.txt (for WordPress, the same folder as wp-config.php). Then open that address in a browser to confirm it shows plain text, and check it with the Validator tab.<\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- ===================== VALIDATOR ===================== -->\n        <div id=\"llms-panel-val\" style=\"display: none;\">\n            <div class=\"aitool-calc-grid\">\n\n                <div class=\"aitool-card\">\n                    <div class=\"aitool-card-header\">\n                        <span class=\"aitool-card-title\">File to Check<\/span>\n                        <span class=\"aitool-card-badge\">Input<\/span>\n                    <\/div>\n                    <div class=\"aitool-card-body\">\n                        <div class=\"aitool-row\">\n                            <label for=\"llms-v-url\">Website (checks the live \/llms.txt)<\/label>\n                            <input type=\"text\" id=\"llms-v-url\" placeholder=\"example.com\" autocomplete=\"off\" inputmode=\"url\">\n                        <\/div>\n\n                        <div class=\"aitool-row\">\n                            <label for=\"llms-v-paste\">Or Paste File Contents<\/label>\n                            <textarea id=\"llms-v-paste\" class=\"llms-mono\" rows=\"9\" placeholder=\"# Site name&#10;&#10;> Short summary&#10;&#10;## Main Pages&#10;- [Home](https:\/\/example.com\/): Description\"><\/textarea>\n                            <div class=\"aitool-row-hint\">If you paste content, the server checks are skipped and only the structure is validated.<\/div>\n                        <\/div>\n\n                        <div class=\"aitool-row\">\n                            <label class=\"aitool-check\" for=\"llms-v-links\">\n                                <input type=\"checkbox\" id=\"llms-v-links\" checked>\n                                <span>Check that the links work (up to 50)<\/span>\n                            <\/label>\n                        <\/div>\n\n                        <div class=\"aitool-buttons\">\n                            <button type=\"button\" id=\"llms-v-run\" class=\"aitool-btn aitool-btn-primary\">Validate<\/button>\n                            <button type=\"button\" id=\"llms-v-clear\" class=\"aitool-btn aitool-btn-secondary\">Clear<\/button>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n                <div class=\"aitool-sticky-panel\">\n                    <div class=\"aitool-card\">\n                        <div class=\"aitool-card-header\">\n                            <span class=\"aitool-card-title\">Validation Overview<\/span>\n                            <span class=\"aitool-card-badge\" id=\"llms-v-status\">Idle<\/span>\n                        <\/div>\n                        <div class=\"aitool-card-body\">\n                            <div class=\"aitool-metric-grid\">\n                                <div class=\"aitool-metric-card highlight\">\n                                    <div class=\"aitool-mc-label\">Errors<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-v-m-err\">0<\/div>\n                                <\/div>\n                                <div class=\"aitool-metric-card\">\n                                    <div class=\"aitool-mc-label\">Warnings<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-v-m-warn\">0<\/div>\n                                <\/div>\n                                <div class=\"aitool-metric-card\">\n                                    <div class=\"aitool-mc-label\">Links Found<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-v-m-links\">0<\/div>\n                                <\/div>\n                                <div class=\"aitool-metric-card\">\n                                    <div class=\"aitool-mc-label\">File Size<\/div>\n                                    <div class=\"aitool-mc-val\" id=\"llms-v-m-size\">0 KB<\/div>\n                                <\/div>\n                            <\/div>\n\n                            <div id=\"llms-v-issues\" class=\"llms-issues\">\n                                <div class=\"aitool-card-highlight\" style=\"margin-bottom: 0;\">\n                                    <div class=\"aitool-card-highlight-label\">Awaiting Execution<\/div>\n                                    <div class=\"aitool-card-content\" style=\"color: var(--BodyTxtColor);\">Enter a website or paste a file, then select Validate.<\/div>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div id=\"llms-v-structure\" style=\"display: none; margin-top: 25px;\"><\/div>\n            <div id=\"llms-v-linktable\" style=\"display: none; margin-top: 25px;\"><\/div>\n        <\/div>\n\n        <div class=\"aitool-info-box\" style=\"margin-top: 25px;\">\n            <strong>About llms.txt:<\/strong>\n            <ul style=\"margin: 10px 0 0 20px; line-height: 1.7;\">\n                <li>llms.txt is a proposed convention: a Markdown file at your site root that gives AI tools a short, curated guide to your most useful pages.<\/li>\n                <li>Major AI providers have not confirmed that they read it, so treat it as a low-cost extra, not a ranking or citation lever. Crawler access and strong content matter far more.<\/li>\n                <li>The expected format is a single H1 title, a short quote summary, then H2 sections containing Markdown link lists, with an optional \"Optional\" section.<\/li>\n                <li>Keep it concise. Listing every page on a large site defeats the purpose.<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\njQuery(document).ready(function ($) {\n    var cfg = {\n        ajax:  \"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/wp-admin\\\/admin-ajax.php\",\n        nonce: \"9d98e280db\"    };\n\n    \/* ---------- Shared helpers ---------- *\/\n    function esc(s) {\n        if (s === null || s === undefined) return '';\n        return String(s).replace(\/&\/g, '&amp;').replace(\/<\/g, '&lt;')\n                        .replace(\/>\/g, '&gt;').replace(\/\"\/g, '&quot;').replace(\/'\/g, '&#39;');\n    }\n\n    function post(action, data) {\n        return new Promise(function (resolve, reject) {\n            $.ajax({\n                url: cfg.ajax, type: 'POST', dataType: 'json',\n                data: $.extend({ action: action, nonce: cfg.nonce }, data)\n            }).done(function (res) {\n                if (res && res.success) { resolve(res.data); return; }\n                var m = 'Request failed.';\n                if (res && typeof res.data === 'string') m = res.data;\n                else if (res && res.data && res.data.message) m = res.data.message;\n                reject(new Error(m));\n            }).fail(function () {\n                reject(new Error('Security check failed or the server returned an unexpected response. Please reload the page and try again.'));\n            });\n        });\n    }\n\n    function pool(items, max, worker) {\n        return new Promise(function (resolve) {\n            var idx = 0, active = 0;\n            if (!items.length) { resolve(); return; }\n            function next() {\n                if (idx >= items.length && active === 0) { resolve(); return; }\n                while (active < max && idx < items.length) {\n                    (function (i) {\n                        active++;\n                        Promise.resolve().then(function () { return worker(items[i], i); })\n                            .catch(function () {})\n                            .then(function () { active--; next(); });\n                    })(idx++);\n                }\n            }\n            next();\n        });\n    }\n\n    function copyText(text, $btn) {\n        function done() {\n            var old = $btn.text();\n            $btn.text('Copied');\n            setTimeout(function () { $btn.text(old); }, 1400);\n        }\n        function fallback() {\n            var ta = document.createElement('textarea');\n            ta.value = text; ta.style.position = 'fixed'; ta.style.opacity = '0';\n            document.body.appendChild(ta); ta.select();\n            try { document.execCommand('copy'); done(); } catch (e) {}\n            document.body.removeChild(ta);\n        }\n        if (navigator.clipboard && navigator.clipboard.writeText) {\n            navigator.clipboard.writeText(text).then(done, fallback);\n        } else { fallback(); }\n    }\n\n    function byteLen(s) {\n        return (window.TextEncoder ? new TextEncoder().encode(s).length : unescape(encodeURIComponent(s)).length);\n    }\n    function kb(n) { return (n < 1024) ? n + ' B' : (n \/ 1024).toFixed(1) + ' KB'; }\n    function cleanDomain(s) { return String(s || '').trim().toLowerCase().replace(\/^https?:\\\/\\\/\/, '').replace(\/^www\\.\/, '').split(\/[\\\/?#]\/)[0]; }\n\n    \/* ---------- Tabs ---------- *\/\n    $('#llms-tabs').on('click', '.aitool-mode-tab', function () {\n        var p = $(this).attr('data-panel');\n        $('#llms-tabs .aitool-mode-tab').removeClass('active');\n        $(this).addClass('active');\n        $('#llms-panel-gen').toggle(p === 'gen');\n        $('#llms-panel-val').toggle(p === 'val');\n    });\n\n    \/* =====================================================\n       GENERATOR\n       ===================================================== *\/\n    var GROUPS = [\n        { key: 'pages',    title: 'Pages',          section: 'Main Pages', def: 25 },\n        { key: 'products', title: 'Products',       section: 'Products',   def: 15 },\n        { key: 'posts',    title: 'Articles',       section: 'Articles',   def: 10 },\n        { key: 'other',    title: 'Other pages',    section: 'More Pages', def: 10 }\n    ];\n\n    var gen = { root: '', host: '', meta: null, found: {}, busy: false };\n\n    var $gUrl = $('#llms-g-url'), $gName = $('#llms-g-name'), $gSummary = $('#llms-g-summary'), $gIntro = $('#llms-g-intro'),\n        $gScan = $('#llms-g-scan'), $gStatus = $('#llms-g-status'), $gNote = $('#llms-g-note'),\n        $gSelect = $('#llms-g-select'), $gOut = $('#llms-g-output'), $gText = $('#llms-g-text');\n\n    function setNote(html) { $gNote.html(html); }\n    function noteBox(label, text, cls) {\n        return '<div class=\"aitool-card-highlight ' + (cls || '') + '\" style=\"margin-bottom: 0;\"><div class=\"aitool-card-highlight-label\">' + esc(label) +\n               '<\/div><div class=\"aitool-card-content\" style=\"color: var(--AccentTxtColor);\">' + esc(text) + '<\/div><\/div>';\n    }\n\n    function pathDepth(u) {\n        try { return (new URL(u).pathname.replace(\/\\\/+$\/, '').match(\/\\\/\/g) || []).length; } catch (e) { return 9; }\n    }\n    function sortUrls(list) {\n        return list.slice().sort(function (a, b) {\n            var d = pathDepth(a) - pathDepth(b);\n            return d !== 0 ? d : a.length - b.length;\n        });\n    }\n\n    function totalFound() {\n        var n = 0;\n        GROUPS.forEach(function (g) { n += (gen.found[g.key] || []).length; });\n        return n;\n    }\n    function selectedCount() { return $gSelect.find('.llms-pick:checked').length; }\n    function updateSelCount() { $('#llms-g-m-sel').text(selectedCount()); }\n\n    function addFound(list) {\n        list.forEach(function (it) {\n            var g = gen.found[it.group] ? it.group : 'other';\n            if (gen.found[g].indexOf(it.url) === -1) gen.found[g].push(it.url);\n        });\n    }\n\n    $gScan.on('click', function () {\n        if (gen.busy) return;\n        var url = $.trim($gUrl.val());\n        if (!url) { setNote(noteBox('Missing website', 'Please enter your website address.', 'llms-lvl-bad')); return; }\n\n        gen.busy = true;\n        gen.found = { pages: [], products: [], posts: [], other: [] };\n        $gScan.prop('disabled', true).text('Scanning...');\n        $gStatus.text('Running').css('color', 'var(--PrimaryColor)');\n        $gSelect.hide().empty(); $gOut.hide();\n        setNote('<div class=\"aitool-loading\" style=\"padding: 20px;\"><span class=\"aitool-loading-spinner\">&#8635;<\/span> Reading homepage and sitemap...<\/div>');\n\n        post('llms_scan_site', { url: url }).then(function (d) {\n            gen.root = d.root; gen.host = d.host; gen.meta = d.meta;\n\n            if (!$.trim($gName.val())) {\n                var nm = d.meta.site_name || d.meta.title.split(\/\\s+[|\\-\\u2013\\u2014\\u00b7]\\s+\/).pop() || d.host;\n                $gName.val($.trim(nm));\n            }\n            if (!$.trim($gSummary.val()) && d.meta.description) $gSummary.val(d.meta.description);\n\n            addFound(d.urls || []);\n            var children = d.children || [];\n            if (!children.length) return;\n\n            var done = 0;\n            return pool(children, 2, function (c) {\n                return post('llms_read_sitemap', { url: c.url, group: c.group, site: d.host }).then(function (r) {\n                    addFound(r.urls || []);\n                }).catch(function () {}).then(function () {\n                    done++;\n                    setNote('<div class=\"aitool-loading\" style=\"padding: 20px;\"><span class=\"aitool-loading-spinner\">&#8635;<\/span> Reading sitemap ' + done + ' of ' + children.length + '...<\/div>');\n                });\n            });\n        }).then(function () {\n            var home = gen.root + '\/';\n            var all = [].concat(gen.found.pages, gen.found.products, gen.found.posts, gen.found.other);\n            var hasHome = all.some(function (u) { return u.replace(\/\\\/+$\/, '') === gen.root; });\n            if (!hasHome) gen.found.pages.unshift(home);\n\n            renderSelection(all.length === 0);\n            $('#llms-g-m-found').text(totalFound());\n            if (all.length === 0) {\n                setNote(noteBox('No sitemap found', 'Only the homepage was found. Add other page URLs by hand in the box below, then generate the file.', 'llms-lvl-warn'));\n                $gStatus.text('Review').css('color', 'var(--PrimaryColor)');\n            } else {\n                setNote(noteBox('Scan complete', 'Choose the pages that best explain your site, then select Generate llms.txt. Fewer, better pages work best.', 'llms-lvl-good'));\n                $gStatus.text('Ready').css('color', '#22c55e');\n            }\n        }).catch(function (err) {\n            setNote('<div class=\"aitool-error\">' + esc(err.message) + '<\/div>');\n            $gStatus.text('Failed').css('color', '#ef4444');\n        }).then(function () {\n            gen.busy = false;\n            $gScan.prop('disabled', false).text('Scan Site');\n        });\n    });\n\n    function renderSelection(noSitemap) {\n        var html = '<div class=\"aitool-card\"><div class=\"aitool-card-header\"><span class=\"aitool-card-title\">Choose Pages<\/span>' +\n            '<span class=\"aitool-card-badge\">Up to 50 pages<\/span><\/div><div class=\"aitool-card-body\">';\n\n        GROUPS.forEach(function (g) {\n            var list = sortUrls(gen.found[g.key] || []);\n            if (!list.length) return;\n            html += '<div class=\"llms-pick-group\" data-g=\"' + g.key + '\">' +\n                '<div class=\"llms-pick-head\"><strong>' + esc(g.title) + ' (' + list.length + ')<\/strong>' +\n                '<span><a href=\"#\" class=\"llms-pick-all\">Select all<\/a> &middot; <a href=\"#\" class=\"llms-pick-none\">None<\/a><\/span><\/div>' +\n                '<div class=\"llms-pick-list\">';\n            list.slice(0, 200).forEach(function (u, i) {\n                var path = u.replace(\/^https?:\\\/\\\/[^\\\/]+\/i, '') || '\/';\n                html += '<label class=\"llms-pick-row\"><input type=\"checkbox\" class=\"llms-pick\" data-g=\"' + g.key + '\" data-u=\"' + esc(u) + '\"' +\n                    (i < g.def ? ' checked' : '') + '> <span>' + esc(path) + '<\/span><\/label>';\n            });\n            html += '<\/div><\/div>';\n        });\n\n        html += '<div class=\"aitool-row\" style=\"margin-top: 18px;\"><label for=\"llms-g-manual\">Add other page URLs (optional, one per line)<\/label>' +\n            '<textarea id=\"llms-g-manual\" rows=\"3\" placeholder=\"https:\/\/' + esc(gen.host) + '\/about\/\"><\/textarea><\/div>';\n\n        html += '<div class=\"aitool-buttons\"><button type=\"button\" id=\"llms-g-build\" class=\"aitool-btn aitool-btn-primary\">Generate llms.txt<\/button><\/div>' +\n            '<div id=\"llms-g-progress\" class=\"aitool-row-hint\" style=\"margin-top: 12px;\"><\/div>' +\n            '<\/div><\/div>';\n\n        $gSelect.html(html).show();\n        updateSelCount();\n    }\n\n    $gSelect.on('change', '.llms-pick', updateSelCount);\n    $gSelect.on('click', '.llms-pick-all, .llms-pick-none', function (e) {\n        e.preventDefault();\n        var on = $(this).hasClass('llms-pick-all');\n        $(this).closest('.llms-pick-group').find('.llms-pick').prop('checked', on);\n        updateSelCount();\n    });\n\n    \/* ---- Title and description cleanup ---- *\/\n    function cleanTitle(t, site) {\n        t = $.trim(t || '');\n        var parts = t.split(\/\\s+[|\\u2013\\u2014\\u00b7\\-]\\s+\/);\n        if (parts.length > 1) {\n            var last = parts[parts.length - 1].toLowerCase(), s = (site || '').toLowerCase();\n            if (s && (last.indexOf(s) !== -1 || s.indexOf(last) !== -1)) parts.pop();\n            else if (s && parts.length > 1 && parts[0].toLowerCase().indexOf(s) !== -1) parts.shift();\n        }\n        return parts.join(' - ');\n    }\n    function shortDesc(d) {\n        d = $.trim(String(d || '').replace(\/\\s+\/g, ' '));\n        if (d.length <= 160) return d;\n        var cut = d.substring(0, 160), sp = cut.lastIndexOf(' ');\n        return (sp > 100 ? cut.substring(0, sp) : cut) + '...';\n    }\n    function fallbackTitle(u) {\n        var p = u.replace(\/^https?:\\\/\\\/[^\\\/]+\/i, '').replace(\/\\\/+$\/, '').split('\/').pop() || 'Home';\n        p = decodeURIComponent(p).replace(\/[-_]+\/g, ' ');\n        return p.charAt(0).toUpperCase() + p.slice(1);\n    }\n    function mdText(s) { return String(s).replace(\/\\[\/g, '(').replace(\/\\]\/g, ')'); }\n    function mdUrl(u) { return u.replace(\/\\(\/g, '%28').replace(\/\\)\/g, '%29').replace(\/\\s\/g, '%20'); }\n\n    $gSelect.on('click', '#llms-g-build', function () {\n        var $btn = $(this), $prog = $('#llms-g-progress');\n        var site = $.trim($gName.val());\n        if (!site) { $prog.text('Please enter a site or business name first.'); return; }\n\n        \/\/ Collect selection in group order\n        var picks = [];\n        GROUPS.forEach(function (g) {\n            $gSelect.find('.llms-pick[data-g=\"' + g.key + '\"]:checked').each(function () {\n                picks.push({ url: $(this).attr('data-u'), group: g.key });\n            });\n        });\n        $.each(String($('#llms-g-manual').val() || '').split(\/\\r?\\n\/), function (_, line) {\n            line = $.trim(line);\n            if (\/^https?:\\\/\\\/\/i.test(line) && cleanDomain(line) === cleanDomain(gen.host)) picks.push({ url: line, group: 'pages' });\n        });\n\n        var seen = {}, unique = [];\n        picks.forEach(function (p) { if (!seen[p.url]) { seen[p.url] = true; unique.push(p); } });\n        var capped = unique.length > 50;\n        picks = unique.slice(0, 50);\n\n        if (!picks.length) { $prog.text('Select at least one page.'); return; }\n\n        $btn.prop('disabled', true).text('Reading pages...');\n        $gStatus.text('Running').css('color', 'var(--PrimaryColor)');\n\n        var results = {}, done = 0, excluded = 0;\n        pool(picks, 4, function (p) {\n            return post('llms_page_meta', { url: p.url }).then(function (r) { results[p.url] = r; })\n                .catch(function () { results[p.url] = { ok: false }; })\n                .then(function () { done++; $prog.text('Reading pages ' + done + ' of ' + picks.length + '...'); });\n        }).then(function () {\n            var entries = [];\n            picks.forEach(function (p) {\n                var r = results[p.url] || { ok: false };\n                if (!r.ok || r.noindex) { excluded++; return; }\n                var title = cleanTitle(r.title, site) || cleanTitle(r.h1, site) || fallbackTitle(p.url);\n                entries.push({ url: p.url, group: p.group, title: title, desc: shortDesc(r.description) });\n            });\n\n            var text = composeFile(site, entries);\n            $gText.val(text);\n            $gOut.show();\n            updateOutputStats(entries.length);\n\n            var msg = entries.length + ' links included.';\n            if (excluded) msg += ' ' + excluded + ' skipped because they returned an error or are set to noindex.';\n            if (capped) msg += ' Only the first 50 selected pages were used.';\n            setNote(noteBox('File generated', msg + ' Review and edit the text below before uploading.', 'llms-lvl-good'));\n            $gStatus.text('Complete').css('color', '#22c55e');\n            $prog.text('');\n            $('html, body').animate({ scrollTop: $gOut.offset().top - 40 }, 300);\n        }).then(function () {\n            $btn.prop('disabled', false).text('Generate llms.txt');\n        });\n    });\n\n    function composeFile(site, entries) {\n        var summary = $.trim($gSummary.val()).replace(\/\\s*\\n\\s*\/g, ' ');\n        var intro = $.trim($gIntro.val());\n        var optional = $('#llms-g-optional').is(':checked');\n        var lines = ['# ' + mdText(site), ''];\n        if (summary) { lines.push('> ' + summary, ''); }\n        if (intro) { lines.push(intro, ''); }\n\n        function line(e) {\n            return '- [' + mdText(e.title) + '](' + mdUrl(e.url) + ')' + (e.desc ? ': ' + e.desc : '');\n        }\n        function section(name, list) {\n            if (!list.length) return;\n            lines.push('## ' + name, '');\n            list.forEach(function (e) { lines.push(line(e)); });\n            lines.push('');\n        }\n        function pick(g) { return entries.filter(function (e) { return e.group === g; }); }\n\n        section('Main Pages', pick('pages'));\n        section('Products', pick('products'));\n        if (optional) {\n            section('Optional', pick('posts').concat(pick('other')));\n        } else {\n            section('Articles', pick('posts'));\n            section('More Pages', pick('other'));\n        }\n        return lines.join('\\n').replace(\/\\n+$\/, '') + '\\n';\n    }\n\n    function updateOutputStats(linkCount) {\n        var t = $gText.val();\n        var links = (typeof linkCount === 'number') ? linkCount : (t.match(\/^\\s*[-*+]\\s+\\[\/gm) || []).length;\n        var size = byteLen(t);\n        $('#llms-g-m-inc').text(links);\n        $('#llms-g-m-size').text(kb(size));\n        $('#llms-g-counter').text(t.split('\\n').length + ' lines | ' + kb(size));\n    }\n    $gText.on('input', function () { updateOutputStats(); });\n\n    $('#llms-g-copy').on('click', function () { copyText($gText.val(), $(this)); });\n    $('#llms-g-download').on('click', function () {\n        var blob = new Blob([$gText.val()], { type: 'text\/plain;charset=utf-8' });\n        var a = document.createElement('a');\n        a.href = URL.createObjectURL(blob); a.download = 'llms.txt';\n        document.body.appendChild(a); a.click(); document.body.removeChild(a);\n        setTimeout(function () { URL.revokeObjectURL(a.href); }, 500);\n    });\n    $('#llms-g-validate').on('click', function () {\n        $('#llms-v-paste').val($gText.val()); $('#llms-v-url').val('');\n        $('#llms-tabs .aitool-mode-tab[data-panel=\"val\"]').trigger('click');\n        $('#llms-v-run').trigger('click');\n    });\n\n    $('#llms-g-ai').on('click', function () {\n        var $b = $(this);\n        if (!gen.meta) { setNote(noteBox('Scan first', 'Scan your site first so the AI has something to summarise.', 'llms-lvl-warn')); return; }\n        var titles = [];\n        $gSelect.find('.llms-pick:checked').slice(0, 25).each(function () {\n            titles.push(fallbackTitle($(this).attr('data-u')));\n        });\n        $b.prop('disabled', true).text('Writing...');\n        post('llms_ai_summary', {\n            site_name: $.trim($gName.val()), title: gen.meta.title, description: gen.meta.description, pages: titles.join(' | ')\n        }).then(function (d) { $gSummary.val(d.summary); })\n          .catch(function (err) { setNote('<div class=\"aitool-error\">' + esc(err.message) + '<\/div>'); })\n          .then(function () { $b.prop('disabled', false).text('Write summary with AI'); });\n    });\n\n    $('#llms-g-clear').on('click', function () {\n        $gUrl.val(''); $gName.val(''); $gSummary.val(''); $gIntro.val('');\n        $('#llms-g-optional').prop('checked', true);\n        gen = { root: '', host: '', meta: null, found: {}, busy: false };\n        $gSelect.hide().empty(); $gOut.hide(); $gText.val('');\n        $gStatus.text('Idle').css('color', 'var(--BodyTxtColor)');\n        $('#llms-g-m-found, #llms-g-m-sel, #llms-g-m-inc').text('0'); $('#llms-g-m-size').text('0 KB');\n        setNote(noteBox('Awaiting Execution', 'Enter your website and select Scan Site.', ''));\n    });\n    $gUrl.on('keydown', function (e) { if (e.which === 13) { e.preventDefault(); $gScan.trigger('click'); } });\n\n    \/* =====================================================\n       VALIDATOR\n       ===================================================== *\/\n    var STATE_PILL = {\n        broken: { cls: 'bad', label: 'Broken' }, dead_domain: { cls: 'bad', label: 'Dead domain' },\n        ok: { cls: 'ok', label: 'OK' }, redirect: { cls: 'warn', label: 'Redirects' },\n        server_error: { cls: 'warn', label: 'Server error' }, blocked: { cls: 'na', label: \"Can't verify\" },\n        unreachable: { cls: 'na', label: 'Unreachable' }, skipped: { cls: 'na', label: 'Skipped' }\n    };\n\n    var V = { issues: [], busy: false };\n    var $vRun = $('#llms-v-run'), $vStatus = $('#llms-v-status'), $vIssues = $('#llms-v-issues');\n\n    function addIssue(level, text) {\n        V.issues.push({ level: level, text: text });\n    }\n    function renderIssues() {\n        var order = { bad: 0, warn: 1, info: 2, good: 3 };\n        var label = { bad: 'Error', warn: 'Warning', info: 'Note', good: 'Good' };\n        var list = V.issues.slice().sort(function (a, b) { return order[a.level] - order[b.level]; });\n        var err = 0, warn = 0;\n        V.issues.forEach(function (i) { if (i.level === 'bad') err++; if (i.level === 'warn') warn++; });\n\n        $('#llms-v-m-err').text(err); $('#llms-v-m-warn').text(warn);\n        if (err) $vStatus.text('Needs Fixes').css('color', '#ef4444');\n        else if (warn) $vStatus.text('Review').css('color', 'var(--PrimaryColor)');\n        else $vStatus.text('Valid').css('color', '#22c55e');\n\n        $vIssues.html(list.map(function (i) {\n            return '<div class=\"aitool-card-highlight llms-lvl-' + i.level + '\" style=\"margin-bottom: 0;\"><div class=\"aitool-card-highlight-label\">' + label[i.level] +\n                '<\/div><div class=\"aitool-card-content\" style=\"color: var(--AccentTxtColor);\">' + esc(i.text) + '<\/div><\/div>';\n        }).join(''));\n    }\n\n    function parseLlms(raw) {\n        var text = raw.replace(\/^\\uFEFF\/, '');\n        var lines = text.split(\/\\r\\n|\\n|\\r\/);\n        var linkRe = \/^\\s*[-*+]\\s+\\[([^\\]]*)\\]\\(\\s*([^)\\s]+)(?:\\s+\"[^\"]*\")?\\s*\\)\\s*(?::\\s*(.*))?$\/;\n        var r = { h1: [], first: null, quote: false, quoteAfterH1: false, summary: '', sections: [], links: [], linksOutside: 0,\n                  badLines: [], bareUrls: [], htmlLines: 0, deep: 0 };\n        var cur = null, afterH1 = false;\n\n        for (var i = 0; i < lines.length; i++) {\n            var line = lines[i], t = $.trim(line);\n            if (!t) continue;\n            if (r.first === null) r.first = t;\n\n            if (afterH1) { if (t.charAt(0) === '>') r.quoteAfterH1 = true; afterH1 = false; }\n\n            if (\/^#\\s+\/.test(t)) { r.h1.push({ line: i + 1, text: t.replace(\/^#\\s+\/, '') }); afterH1 = true; continue; }\n            if (\/^##\\s+\/.test(t)) { cur = { name: t.replace(\/^##\\s+\/, ''), line: i + 1, links: [] }; r.sections.push(cur); continue; }\n            if (\/^#{3,}\\s+\/.test(t)) { r.deep++; continue; }\n            if (t.charAt(0) === '>') {\n                if (r.h1.length && !cur) { r.quote = true; r.summary += (r.summary ? ' ' : '') + t.replace(\/^>\\s*\/, ''); }\n                continue;\n            }\n            var m = linkRe.exec(line);\n            if (m) {\n                var link = { text: m[1], url: m[2], desc: $.trim(m[3] || ''), line: i + 1, section: cur ? cur.name : '' };\n                r.links.push(link);\n                if (cur) cur.links.push(link); else r.linksOutside++;\n                continue;\n            }\n            if (\/^\\s*[-*+]\\s+\/.test(line)) { r.badLines.push(i + 1); continue; }\n            if (\/^https?:\\\/\\\/\/i.test(t)) { r.bareUrls.push(i + 1); continue; }\n            if (\/<\\\/?[a-z][^>]*>\/i.test(t)) r.htmlLines++;\n        }\n        return r;\n    }\n\n    function lineList(arr) {\n        var s = arr.slice(0, 8).join(', ');\n        return arr.length > 8 ? s + ' and ' + (arr.length - 8) + ' more' : s;\n    }\n\n    function checkStructure(raw, size) {\n        var r = parseLlms(raw);\n\n        if (!$.trim(raw)) { addIssue('bad', 'The file is empty.'); return r; }\n\n        if (r.h1.length === 0) addIssue('bad', 'Missing the H1 title. The file should start with a single line like \"# Site name\".');\n        else if (r.first && !\/^#\\s+\/.test(r.first)) addIssue('bad', 'The file should begin with the H1 title, but it starts with other content.');\n        if (r.h1.length > 1) addIssue('warn', 'There are ' + r.h1.length + ' H1 titles (lines ' + lineList(r.h1.map(function (h) { return h.line; })) + '). Use one H1 and H2 for sections.');\n\n        if (r.h1.length) {\n            if (!r.quote) addIssue('warn', 'No summary found. Add a short quote line (starting with \">\") directly under the title.');\n            else if (!r.quoteAfterH1) addIssue('info', 'The summary quote is not directly under the H1 title. Moving it there matches the usual format.');\n        }\n\n        if (r.sections.length === 0) addIssue('warn', 'No H2 sections found. Group your links under headings such as \"## Main Pages\".');\n        var empty = r.sections.filter(function (s) { return !s.links.length; }).map(function (s) { return s.name; });\n        if (empty.length) addIssue('warn', 'Sections with no links: ' + empty.join(', ') + '.');\n        if (r.links.length === 0) addIssue('warn', 'No links in the format \"- [Name](https:\/\/url): description\" were found.');\n        if (r.linksOutside) addIssue('info', r.linksOutside + ' link' + (r.linksOutside === 1 ? ' sits' : 's sit') + ' above the first H2 section.');\n\n        if (r.badLines.length) addIssue('warn', 'List items that are not in \"[name](url)\" form on line' + (r.badLines.length === 1 ? ' ' : 's ') + lineList(r.badLines) + '.');\n        if (r.bareUrls.length) addIssue('warn', 'Bare URLs found on line' + (r.bareUrls.length === 1 ? ' ' : 's ') + lineList(r.bareUrls) + '. Put each in a Markdown link with a name.');\n        if (r.htmlLines) addIssue('warn', 'HTML tags found on ' + r.htmlLines + ' line' + (r.htmlLines === 1 ? '' : 's') + '. llms.txt should be plain Markdown.');\n\n        var rel = 0, odd = 0, noText = 0, noDesc = 0, dup = 0, seen = {};\n        r.links.forEach(function (l) {\n            if (!\/^https?:\\\/\\\/\/i.test(l.url)) { if (\/^[a-z][a-z0-9+.\\-]*:\/i.test(l.url)) odd++; else rel++; }\n            if (!$.trim(l.text)) noText++;\n            if (!l.desc) noDesc++;\n            var k = l.url.replace(\/\\\/+$\/, '').toLowerCase();\n            if (seen[k]) dup++; seen[k] = true;\n        });\n        if (rel) addIssue('warn', rel + ' link' + (rel === 1 ? ' uses a' : 's use') + ' relative URL' + (rel === 1 ? '' : 's') + '. Use full https:\/\/ addresses so AI tools can follow them.');\n        if (odd) addIssue('warn', odd + ' link' + (odd === 1 ? ' uses' : 's use') + ' a non-web address (such as mailto:).');\n        if (noText) addIssue('warn', noText + ' link' + (noText === 1 ? ' has' : 's have') + ' empty link text.');\n        if (dup) addIssue('info', dup + ' duplicate URL' + (dup === 1 ? '' : 's') + ' listed.');\n        if (r.links.length && noDesc) addIssue('info', noDesc + ' of ' + r.links.length + ' links have no description. A short description helps AI tools choose the right page.');\n        if (r.links.length > 150) addIssue('info', 'There are ' + r.links.length + ' links. A short, curated list is more useful than a full page index.');\n        if (size > 100000) addIssue('warn', 'The file is ' + kb(size) + '. It is meant to be concise, so consider trimming it.');\n\n        var hasOptional = r.sections.some(function (s) { return s.name.toLowerCase() === 'optional'; });\n        if (hasOptional) addIssue('info', 'An \"Optional\" section is present, which marks secondary links that can be skipped.');\n\n        return r;\n    }\n\n    function renderStructure(r) {\n        if (!r.h1.length && !r.sections.length) { $('#llms-v-structure').hide(); return; }\n        var html = '<div class=\"aitool-card\"><div class=\"aitool-card-header\"><span class=\"aitool-card-title\">Detected Structure<\/span>' +\n            '<span class=\"aitool-card-badge\">' + r.links.length + ' links<\/span><\/div><div class=\"aitool-card-body\">';\n        html += '<div class=\"aitool-formula-box\" style=\"margin-bottom: 14px;\"><div class=\"aitool-formula-label\">Title<\/div><div class=\"aitool-formula-text\">' + esc(r.h1.length ? r.h1[0].text : '(none)') + '<\/div>' +\n            '<div class=\"aitool-formula-label\" style=\"margin-top: 8px;\">Summary<\/div><div class=\"aitool-formula-text\">' + esc(r.summary || '(none)') + '<\/div><\/div>';\n        if (r.sections.length) {\n            html += '<div class=\"aitool-tbl-wrap\"><table class=\"aitool-tbl\" style=\"min-width: 360px;\"><thead><tr><th>Section<\/th><th>Links<\/th><\/tr><\/thead><tbody>' +\n                r.sections.map(function (s) { return '<tr><td><strong>' + esc(s.name) + '<\/strong><\/td><td>' + s.links.length + '<\/td><\/tr>'; }).join('') +\n                '<\/tbody><\/table><\/div>';\n        }\n        html += '<\/div><\/div>';\n        $('#llms-v-structure').html(html).show();\n    }\n\n    function checkLinks(r) {\n        var unique = [], seen = {};\n        r.links.forEach(function (l) {\n            if (\/^https?:\\\/\\\/\/i.test(l.url) && !seen[l.url]) { seen[l.url] = true; unique.push(l); }\n        });\n        var capped = unique.length > 50;\n        unique = unique.slice(0, 50);\n        if (!unique.length) { $('#llms-v-linktable').hide(); return Promise.resolve(); }\n\n        var rows = unique.map(function (l, i) {\n            return '<tr><td><strong>' + esc(l.text || '(no text)') + '<\/strong><small>' + esc(l.url) + '<\/small><\/td>' +\n                   '<td id=\"llms-lk-' + i + '\"><span class=\"aitool-pill aitool-pill--na\">Waiting<\/span><\/td><\/tr>';\n        }).join('');\n        $('#llms-v-linktable').html('<div class=\"aitool-card\"><div class=\"aitool-card-header\"><span class=\"aitool-card-title\">Link Check<\/span>' +\n            '<span class=\"aitool-card-badge\" id=\"llms-lk-badge\">0 \/ ' + unique.length + '<\/span><\/div><div class=\"aitool-card-body\">' +\n            (capped ? '<div class=\"aitool-row-hint\" style=\"margin-bottom: 10px;\">Checking the first 50 unique links.<\/div>' : '') +\n            '<div class=\"aitool-tbl-wrap\"><table class=\"aitool-tbl\" style=\"min-width: 420px;\"><thead><tr><th>Link<\/th><th>Status<\/th><\/tr><\/thead><tbody>' + rows + '<\/tbody><\/table><\/div><\/div><\/div>').show();\n\n        var counts = { bad: 0, redirect: 0, blocked: 0 }, done = 0;\n        return pool(unique, 4, function (l, i) {\n            return post('check_link_status', { url: l.url }).catch(function () { return { state: 'unreachable', status: 0 }; }).then(function (res) {\n                var st = res.state || 'unreachable', p = STATE_PILL[st] || STATE_PILL.unreachable;\n                var extra = (res.status && st !== 'ok' && st !== 'dead_domain') ? ' (' + res.status + ')' : '';\n                $('#llms-lk-' + i).html('<span class=\"aitool-pill aitool-pill--' + p.cls + '\">' + esc(p.label + extra) + '<\/span>');\n                if (st === 'broken' || st === 'dead_domain') counts.bad++;\n                if (st === 'redirect') counts.redirect++;\n                if (st === 'blocked') counts.blocked++;\n                done++; $('#llms-lk-badge').text(done + ' \/ ' + unique.length);\n            });\n        }).then(function () {\n            if (counts.bad) addIssue('bad', counts.bad + ' link' + (counts.bad === 1 ? ' is' : 's are') + ' broken or point to dead domains. See the link check table.');\n            if (counts.redirect) addIssue('info', counts.redirect + ' link' + (counts.redirect === 1 ? ' redirects' : 's redirect') + ' without resolving. List the final address instead.');\n            if (counts.blocked) addIssue('info', counts.blocked + ' link' + (counts.blocked === 1 ? '' : 's') + ' could not be verified because the site blocked the check.');\n            if (!counts.bad) addIssue('good', 'Every verifiable link responded normally.');\n        });\n    }\n\n    $vRun.on('click', function () {\n        if (V.busy) return;\n        var pasted = $('#llms-v-paste').val();\n        var url = $.trim($('#llms-v-url').val());\n        if (!$.trim(pasted) && !url) {\n            V.issues = [{ level: 'bad', text: 'Enter a website to check, or paste the file contents.' }];\n            renderIssues(); return;\n        }\n\n        V.busy = true; V.issues = [];\n        $vRun.prop('disabled', true).text('Validating...');\n        $vStatus.text('Running').css('color', 'var(--PrimaryColor)');\n        $('#llms-v-structure, #llms-v-linktable').hide().empty();\n        $('#llms-v-m-links').text('0'); $('#llms-v-m-size').text('0 KB');\n        $vIssues.html('<div class=\"aitool-loading\" style=\"padding: 20px;\"><span class=\"aitool-loading-spinner\">&#8635;<\/span> Checking...<\/div>');\n\n        var source;\n        if ($.trim(pasted)) {\n            source = Promise.resolve({ body: pasted, live: false });\n        } else {\n            source = post('llms_fetch_file', { url: url }).then(function (d) {\n                d.live = true; return d;\n            });\n        }\n\n        source.then(function (d) {\n            var body = d.body || '';\n\n            if (d.live) {\n                if (d.status === 404 || d.status === 410) {\n                    addIssue('bad', 'No llms.txt found at ' + d.url + ' (HTTP ' + d.status + ').');\n                    return;\n                }\n                if (d.status !== 200) {\n                    addIssue('bad', 'The file returned HTTP ' + d.status + ' instead of 200.');\n                    return;\n                }\n                if (d.is_html) {\n                    addIssue('bad', 'The address returns an HTML page, not a text file. This is usually a custom 404 page or a theme catching the URL.');\n                    return;\n                }\n                var ct = (d.content_type || '').toLowerCase();\n                if (ct.indexOf('text\/html') !== -1) addIssue('warn', 'Served as ' + d.content_type + '. Plain text or Markdown (text\/plain or text\/markdown) is expected.');\n                else if (ct && !\/text\\\/(plain|markdown|x-markdown)\/.test(ct)) addIssue('warn', 'Unusual content type: ' + d.content_type + '. Text\/plain or text\/markdown is expected.');\n                if (d.cross_host) addIssue('warn', 'The file redirects to a different domain (' + d.final_url + '). It should be served from the site itself.');\n                else if (d.redirected) addIssue('info', 'The address redirects to ' + d.final_url + '.');\n                if (!d.utf8) addIssue('warn', 'The file is not valid UTF-8. Save it as UTF-8 text.');\n                if (d.truncated) addIssue('info', 'The file is larger than 300 KB, so only the first part was checked.');\n                if (d.full) addIssue('info', 'An llms-full.txt file also exists at the site root.');\n                if (d.status === 200 && !d.redirected) addIssue('good', 'The file loads at ' + d.url + ' with HTTP 200.');\n            }\n\n            var size = d.live ? d.bytes : byteLen(body);\n            $('#llms-v-m-size').text(kb(size));\n\n            var r = checkStructure(body, size);\n            $('#llms-v-m-links').text(r.links.length);\n            renderStructure(r);\n\n            var errs = V.issues.filter(function (i) { return i.level === 'bad' || i.level === 'warn'; }).length;\n            if (!errs && r.links.length) addIssue('good', 'The structure matches the llms.txt format.');\n\n            renderIssues();\n\n            if ($('#llms-v-links').is(':checked') && r.links.length) {\n                return checkLinks(r);\n            }\n        }).catch(function (err) {\n            V.issues = [{ level: 'bad', text: err.message }];\n        }).then(function () {\n            renderIssues();\n            V.busy = false;\n            $vRun.prop('disabled', false).text('Validate');\n        });\n    });\n\n    $('#llms-v-clear').on('click', function () {\n        $('#llms-v-url, #llms-v-paste').val(''); $('#llms-v-links').prop('checked', true);\n        V.issues = [];\n        $('#llms-v-structure, #llms-v-linktable').hide().empty();\n        $('#llms-v-m-err, #llms-v-m-warn, #llms-v-m-links').text('0'); $('#llms-v-m-size').text('0 KB');\n        $vStatus.text('Idle').css('color', 'var(--BodyTxtColor)');\n        $vIssues.html('<div class=\"aitool-card-highlight\" style=\"margin-bottom: 0;\"><div class=\"aitool-card-highlight-label\">Awaiting Execution<\/div><div class=\"aitool-card-content\" style=\"color: var(--BodyTxtColor);\">Enter a website or paste a file, then select Validate.<\/div><\/div>');\n    });\n    $('#llms-v-url').on('keydown', function (e) { if (e.which === 13) { e.preventDefault(); $vRun.trigger('click'); } });\n});\n<\/script>\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":3234,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-4560","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>llms.txt Generator and Validator -<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"llms.txt Generator and Validator -\" \/>\n<meta property=\"og:url\" content=\"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/acrossysdigital.2\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-14T07:51:32+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@AcrossysD\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/tools\\\/llms-txt-generator-and-validator\\\/\",\"url\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/tools\\\/llms-txt-generator-and-validator\\\/\",\"name\":\"llms.txt Generator and Validator -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/#website\"},\"datePublished\":\"2026-11-14T07:50:47+00:00\",\"dateModified\":\"2026-11-14T07:51:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/tools\\\/llms-txt-generator-and-validator\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/tools\\\/llms-txt-generator-and-validator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/tools\\\/llms-txt-generator-and-validator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tools\",\"item\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/tools\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"llms.txt Generator and Validator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/#website\",\"url\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/\",\"name\":\"Acrossys Digital\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/#organization\",\"name\":\"Acrossys Digital\",\"url\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/AD-Logo.svg\",\"contentUrl\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/AD-Logo.svg\",\"width\":300,\"height\":125,\"caption\":\"Acrossys Digital\"},\"image\":{\"@id\":\"https:\\\/\\\/digitalbridgehub.com\\\/acrossysdigital\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/acrossysdigital.2\\\/\",\"https:\\\/\\\/x.com\\\/AcrossysD\",\"https:\\\/\\\/www.instagram.com\\\/acrossys.digital\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/acrossysdigital\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/acrossysdigital\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"llms.txt Generator and Validator -","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"llms.txt Generator and Validator -","og_url":"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/","article_publisher":"https:\/\/www.facebook.com\/acrossysdigital.2\/","article_modified_time":"2026-11-14T07:51:32+00:00","twitter_card":"summary_large_image","twitter_site":"@AcrossysD","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/","url":"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/","name":"llms.txt Generator and Validator -","isPartOf":{"@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/#website"},"datePublished":"2026-11-14T07:50:47+00:00","dateModified":"2026-11-14T07:51:32+00:00","breadcrumb":{"@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/llms-txt-generator-and-validator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/digitalbridgehub.com\/acrossysdigital\/"},{"@type":"ListItem","position":2,"name":"Tools","item":"https:\/\/digitalbridgehub.com\/acrossysdigital\/tools\/"},{"@type":"ListItem","position":3,"name":"llms.txt Generator and Validator"}]},{"@type":"WebSite","@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/#website","url":"https:\/\/digitalbridgehub.com\/acrossysdigital\/","name":"Acrossys Digital","description":"","publisher":{"@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/digitalbridgehub.com\/acrossysdigital\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/#organization","name":"Acrossys Digital","url":"https:\/\/digitalbridgehub.com\/acrossysdigital\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/#\/schema\/logo\/image\/","url":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-content\/uploads\/2026\/09\/AD-Logo.svg","contentUrl":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-content\/uploads\/2026\/09\/AD-Logo.svg","width":300,"height":125,"caption":"Acrossys Digital"},"image":{"@id":"https:\/\/digitalbridgehub.com\/acrossysdigital\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/acrossysdigital.2\/","https:\/\/x.com\/AcrossysD","https:\/\/www.instagram.com\/acrossys.digital\/","https:\/\/www.linkedin.com\/company\/acrossysdigital\/","https:\/\/in.pinterest.com\/acrossysdigital\/"]}]}},"_links":{"self":[{"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/pages\/4560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/comments?post=4560"}],"version-history":[{"count":4,"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/pages\/4560\/revisions"}],"predecessor-version":[{"id":4564,"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/pages\/4560\/revisions\/4564"}],"up":[{"embeddable":true,"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/pages\/3234"}],"wp:attachment":[{"href":"https:\/\/digitalbridgehub.com\/acrossysdigital\/wp-json\/wp\/v2\/media?parent=4560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}