You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IndexNow is a rapid indexing API originally created by MS Bing and adopted by a few other search engines. The API allows users to tell search engines about modified pages directly instead of waiting for them to crawl and discover changes themselves.
A number of CMS' include support for it by default or with a plugin and ping the appropriate search engines when modifications are made to pages. Unfortunately with Publii sites being static, that can't easily be done from the site.
However, the ping doesn't have to come from the site itself, the API accepts it from anywhere as long as there's a txt file in the site root with the engine's API key and the sent request containing the matching key.
The plan would be whenever a Publii user syncs to their website with IndexNow enabled, Publii collects the valid/configured page types that have been modified in this sync, creates a POST JSON request and pings the enabled search engines from the app itself.
Requires:
A new Publii settings section for IndexNow where search engines (Bing/Yandex primarily) can be toggled on and their API keys added.
Publii would create a txt file in the project (File Manager) with the API key as the name and contents if the user hasn't already done so.
When syncing a site, Publii collects valid pages that were modified in this sync and forms a JSON POST request with the respective API keys and sends to enabled search engine APIs.
The API responds with a 200 or other status codes. Publii may show the response if not 200, but shouldn't interrupt the sync process on ping failure if the API is down.
Warning
The Publii settings/sync UI should contain a warning/block if syncing to a public repo such as Github as the API key should remain private.
Anyone with the key can submit malicious updates to the API affecting the user's site.
Feature Description
IndexNow is a rapid indexing API originally created by MS Bing and adopted by a few other search engines. The API allows users to tell search engines about modified pages directly instead of waiting for them to crawl and discover changes themselves.
A number of CMS' include support for it by default or with a plugin and ping the appropriate search engines when modifications are made to pages. Unfortunately with Publii sites being static, that can't easily be done from the site.
However, the ping doesn't have to come from the site itself, the API accepts it from anywhere as long as there's a txt file in the site root with the engine's API key and the sent request containing the matching key.
The plan would be whenever a Publii user syncs to their website with IndexNow enabled, Publii collects the valid/configured page types that have been modified in this sync, creates a POST JSON request and pings the enabled search engines from the app itself.
Requires:
Warning
The Publii settings/sync UI should contain a warning/block if syncing to a public repo such as Github as the API key should remain private.
Anyone with the key can submit malicious updates to the API affecting the user's site.
API documentation available here: https://www.indexnow.org/documentation
The text was updated successfully, but these errors were encountered: