=== IndexPing – IndexNow that respects noindex ===
Contributors: rgcglobalnet
Tags: indexnow, seo, bing, indexing, instant indexing
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

IndexNow done right: pings search engines only for URLs that should be indexed, with a retry queue and a visible log.

== Description ==

IndexNow tells Bing, Yandex, Seznam, Naver and other search engines that a page changed, so they recrawl it within minutes instead of weeks. Most IndexNow plugins ping **every** URL you save. That includes noindex pages, canonicalised duplicates, password-protected pages and thank-you pages. They also fail silently when the API answers 429.

**IndexPing only sends what should be indexed, and shows you what happened.**

= Features =

* **Respects your SEO settings.** It skips content marked noindex in Yoast SEO, Rank Math, SEOPress or All in One SEO. It also skips content whose canonical points to another URL, password-protected and private content, drafts, attachments, and any content type you exclude. If "Discourage search engines" is on, nothing is sent.
* **Queue with retries.** Changes are batched for 60 seconds, so ten saves while you edit become one request. Rate limits (HTTP 429) and server errors are retried with exponential backoff, up to 6 hours.
* **Status at a glance.** Cards show whether sending is active, the key file, and the URLs accepted, skipped and failed in the last 7 days.
* **Visible log.** The last 500 submissions with the HTTP response, plus every skipped URL with a human-readable reason. Filter by Accepted, Skipped, Will retry or Rejected.
* **Manual and bulk submit.** Submit any URL of your site, or select posts and pages and use the "Submit to IndexNow" bulk action. The same rules still apply.
* **No files written.** The key file `/{key}.txt` is served virtually, and nothing is written to your web root.
* **Duplicate-sender warning.** You are warned if another IndexNow sender is active: the IndexNow plugin, Index Now by mihdan, or Rank Math Instant Indexing.
* **Lightweight.** No custom tables, no front-end scripts, no tracking. Translations included: English, Spanish and Catalan.

= How it works =

1. Activate. A key is generated and served at `/{key}.txt`.
2. Publish, update, unpublish or trash content. IndexPing decides whether the URL is eligible and either queues it or logs why it skipped it.
3. About 60 seconds later the queue is sent in one batch to `api.indexnow.org`, and the response is logged.

= IndexPing Pro =

| | Free | Pro |
|---|:---:|:---:|
| Automatic submit on publish, update, unpublish and trash | ✓ | ✓ |
| noindex / canonical / password / private filters | ✓ | ✓ |
| Queue, 429 handling and backoff | ✓ | ✓ |
| Log with filters, status cards | ✓ | ✓ |
| Manual and bulk submit | ✓ | ✓ |
| Backfill of every eligible published URL (500 per batch) | – | ✓ |
| Weekly e-mail report (accepted, retried, failed, skipped) | – | ✓ |
| WP-CLI: `wp indexping submit / backfill / status` | – | ✓ |
| Priority e-mail support | – | ✓ |

Everything in the Free column is complete, with no limits. Pro is sold separately at [rgcglobalnet.com/indexping](https://rgcglobalnet.com/indexping/).

= External services =

This plugin sends data to the **IndexNow API** (`https://api.indexnow.org/indexnow`), which is operated by the IndexNow initiative and forwards submissions to the participating search engines.

* What is sent: your site host name, your IndexNow key, the URL of the key file, and the list of URLs that changed on your site. No personal data, cookies or visitor information is sent.
* When: about 60 seconds after content is published, updated, unpublished or trashed (only when automatic submission is enabled, which is the default), when you submit a URL manually, or when you use the bulk action.
* Terms of use: https://www.indexnow.org/terms
* Privacy policy: https://www.indexnow.org/privacy

== Installation ==

1. Install from Plugins › Add New and activate.
2. Go to Tools › IndexPing. Your key is created automatically. Click the key file link and check that it shows the key.
3. Publish or update something. The log shows the response after about a minute (WP-Cron must be running).

== Frequently Asked Questions ==

= Does it replace my SEO plugin? =

No. It only handles IndexNow pings. It reads your SEO plugin's noindex and canonical settings to decide what to send.

= Does it work with Google? =

Google does not take part in IndexNow. Keep your XML sitemap and Search Console for Google.

= Why was a URL skipped? =

The log shows the reason: noindex, canonical points elsewhere, password-protected, not published, site hidden from search engines, or excluded content type.

= Rank Math already has Instant Indexing. Should I use both? =

No. Use one sender, otherwise every change is submitted twice. IndexPing shows a warning when it detects another sender. Choose IndexPing if you want the noindex and canonical filters and the log.

= What happens when IndexNow answers 429 Too Many Requests? =

The batch stays in the queue and is retried with exponential backoff (1, 2, 4… minutes, up to 6 hours). Nothing is lost, and the log shows "Will retry".

= Does it write a key file to my server? =

No. The key is stored in the database and `/{key}.txt` is answered by WordPress itself. This works on read-only file systems and managed hosts.

= My SEO plugin stores robots settings elsewhere. =

Use the `indexping_is_noindex` and `indexping_canonical` filters to tell IndexPing.

= Does it slow down my site? =

No. Nothing runs on the front end apart from the virtual key file, and submissions happen in WP-Cron after you save.

== Screenshots ==

1. Tools › IndexPing: status cards, settings, manual submit and the log.
2. The log filtered to skipped URLs, each with its reason (noindex, canonical, password).
3. Bulk action "Submit to IndexNow" in the posts list.
4. After the bulk action: eligible URLs queued, the rest skipped and logged.
5. IndexPing Pro: backfill of all eligible URLs, weekly report and WP-CLI.

== Changelog ==

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.0.0 =
First release.
