Whether multiple stations and branches should share a key file and what is the judgment logic?
Do multi-site and sub-site need to share a single key file? The judgment logic depends on whether the sites point to the same root directory, whether they belong to the same brand, and the complexity of management. The IndexNow protocol allows the same server to share a key file, but when actually deploying, it is necessary to weigh the security and convenience.
The verification mechanism of the key file
IndexNow is an active push protocol driven by search engines such as Bing and Yandex. The verification core is a text key file containing UUID, which needs to be placed in the root directory of the website. When pushing, the site sends a POST request to the API with the key, and the server will then visit the key file under the domain name to confirm control rights.
The key file binds to the combination of the server and root directory. If multiple domains share the same file system root directory, placing a key file can verify them simultaneously; if each has an independent document root, then a separate key file must be placed for each.
The judgment of the root directory relationship
In a typical multi-site architecture, each site corresponds to a server block or virtual host, each with its own root directive. If multiple domains point to the same root directory, keys can be shared; if there are independent root directories, even if running on the same physical server, a separate key file must be placed for each.
The true meaning of sharing is that it can be shared when multiple domains point to the same document root; when they have independent root directories, each must have its own copy. This is the basic logic of HTTP server routing, not the limitation of the IndexNow protocol.
Why is it not recommended to have multiple keys?
The IndexNow official FAQ explicitly advises against creating a separate key file for each site. Reasons include complexity of management (each additional key requires maintaining one more file and UUID), security risks (the more keys, the greater the exposure), and technical redundancy (losing the advantage of one-time configuration for the entire site to take effect).
This does not mean that all scenarios should be shared. If sites belong to different brands or customers, generating independent keys for each can avoid confusion of permissions.
Who manages the keys?
If a shared key scheme is adopted, the key file is placed in the server shared directory and managed by the server administrator. When the site administrator initiates a push, they need to go through a unified interface (such as the AnQiCMS link push management feature F010). The advantage is centralized control, but the disadvantage is that the site administrator lacks autonomy.
If an independent key scheme is adopted, each site has its own key file and backend configuration, and the site administrator can independently decide the push strategy. However, this requires each site to have independent file system permissions.
The multi-site management function (F006) of AnQi CMS supports managing multiple independent sites. The recommended practice is: sites of the same brand or operation team share a single key; sites belonging to different brands or customers generate independent keys.
Check before deployment
Confirm the document root path of the site, determine which sites share the root directory. Test the accessibility of the key file, confirm that content can be returned normally. Verify the connectivity of the push interface, check the returned status code. Check that the pseudo-static rules (F008) do not rewrite the key file as a dynamic route. Monitor the push effect, check the inclusion situation through the search engine background (F005, F009).
Common questions
Question: Must subdomains and main domains use different keys?
Answer: If pointing to the same document root, they can be shared; if there are independent root directories, they need to be placed separately.
How to deal with key leakage?
Immediately generate a new UUID to replace the key file and update all push script configurations.
| Scene | Root directory relationship | Key strategy | Management party |
|---|---|---|---|
| Multi-language site of the same brand | Shared | Shared one | Server administrator |
| Independent site of different brands | independent | Each one | Site administrator |
| Subdomain blog | May be shared | As determined by root | Negotiated to determine |