SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Check IndexNow Key Location Against the URLs a Publisher May Notify

Match IndexNow publisher authority to the actual host and key-file directory, with a filled delegation map and conservative local admission cases.

Before wiring IndexNow into a publisher, establish which host and paths the selected key location covers. A working notification queue can still submit the wrong resource set if a shared integration treats every company URL as one authorized namespace.

Keep three decisions separate: the organization authorizes a publisher, the protocol verifies the relevant host and key location, and the search engine receives a notification. None establishes that the changed page was indexed. The change-event plan handles publication triggers and receipts; this guide establishes the preceding scope contract.

The example below is fictional and sends no request. Its key label is not a real key to deploy. A local allowlist checks a proposed release policy; it cannot establish that a receiving engine validated an actual host.

Read the current location rule

The official IndexNow documentation describes a UTF-8 text key file at the host root and an alternative using one or more files elsewhere on the same host. The latter supplies the keyLocation value with each notification.

For that non-root option, the location determines the URL set covered by the key. The documentation’s /catalog/ example can cover paths below /catalog/ but not the separate /help/ directory. It recommends root placement for broad host coverage. Do not replace that documented alternative with an assumption that every valid key must cover an entire domain.

A subdomain is a separate host. Keep the exact host, key location and proposed changed URLs in the review record. The public key-file mechanism is not a general password system or proof that a deployment worker may modify the website; separate operational permissions still govern who can publish content and change the file.

Fill the two-publisher scope map

Assume a fictional company authorizes one catalog publisher and one documentation publisher. It deliberately chooses a narrower catalog key location. This is an operating choice for the example, not advice that every website should create multiple keys.

PublisherProposed key locationProposed changed URLLocal decision
Catalog workerhttps://example.test/catalog/demo-key-2026.txthttps://example.test/catalog/itemWithin the stated catalog directory
Catalog workerSame catalog key locationhttps://example.test/catalogue/itemHold: different path boundary
Catalog workerSame catalog key locationhttps://example.test/help/itemHold: separate directory
Catalog workerSame catalog key locationhttps://docs.example.test/catalog/itemHold: different host
Sitewide publisherhttps://example.test/sitewide-demo-key.txthttps://example.test/help/itemRoot-host scope candidate; actual authorization and validation still required

The root-host candidate is not automatically approved just because it is technically broader. The organization must authorize that worker’s scope, and the real key file must meet the current protocol requirements. Keep protocol coverage and company permission as separate columns.

Run a conservative local admission fixture

This complete Python fixture models only the illustrated HTTPS, ASCII paths under one directory. It deliberately holds explicit ports, fragments, encoded paths and dot-segment cases for review. Those choices are narrower local admission rules, not claims that the protocol universally rejects every such URL.

from urllib.parse import urlsplit
key_location = 'https://example.test/catalog/demo-key-2026.txt'
def admitted(url, key_url):
    u, k = urlsplit(url), urlsplit(key_url)
    # Deliberately narrow local release policy, not a protocol implementation.
    if u.scheme != 'https' or k.scheme != 'https': return False
    if u.hostname != k.hostname or u.username or u.password: return False
    if u.port is not None or u.fragment: return False
    if '%' in u.path or not u.path.isascii(): return False
    if any(x in ('.', '..') for x in u.path.split('/')): return False
    directory = k.path.rsplit('/', 1)[0] + '/'
    return u.path.startswith(directory)
cases = {
 'https://example.test/catalog/item': True,
 'https://example.test/catalog/show?item=23': True,
 'https://example.test/catalogue/item': False,
 'https://example.test/help/item': False,
 'https://docs.example.test/catalog/item': False,
 'https://example.test/catalog/../help/item': False,
 'https://example.test/catalog/%2e%2e/help/item': False
}
for url, expected in cases.items():
    assert admitted(url, key_location) is expected, url
print('seven local publisher-admission cases PASS; no submissions sent')

The trailing slash in /catalog/ matters: /catalogue/ must not pass because its characters start similarly. The encoded and dot-segment cases are held instead of trying to guess how every intermediary will normalize them. A production publisher needs the actual routing contract for any broader supported forms.

The two positive cases and five negative cases are supplied teaching inputs. Passing them proves that this local function matches those expectations. It does not prove Google support for IndexNow, receiving-engine validation or an indexing outcome.

Bind release and file observations to one revision

Before actual activation, the authorized owner should preserve the real key-file URL, its ordinary public response and expected content, the publisher configuration revision and the permitted URL set. Use private operating records where the organization requires them; do not put production authorization details into an unrestricted tutorial.

When a key location or publisher changes, identify pending notifications still tied to the prior configuration. Decide whether they should be reconstructed under the new reviewed scope or held. Do not silently relabel old attempts as if they used the new authority.

A migration can move content across directory or host boundaries. The redirect map establishes the new resource destination, while this admission record decides which publisher can notify it. A correct redirect alone does not update the worker’s keyLocation or grant broader authority.

Keep acceptance separate from the outcome

Record real response codes only after an authorized submission occurs. The protocol documents pending key validation and invalid-host or key-related errors as distinct states. A prepared payload is not a received notification, and a received notification is not an indexed page.

If the key file becomes unavailable or its expected value changes, retain the unresolved state and identify the responsible owner. Do not recover by borrowing another site’s key, submitting unrelated URLs or repeatedly retrying a permanent scope mismatch. Correct the documented configuration under the normal release process.

Use the release ledger to preserve the real file and publisher changes. Close when the permitted URL set, observed key location and actual receipt evidence agree within their respective scopes. Later discovery and indexing remain separately observed results.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach