Error 403: key not valid

IndexNow answered 403 Forbidden: it could not validate your key. Either the key file is missing, or its content does not match the key. No URLs were accepted.

Common causes

  • The key file is missing at https://<host>/<key>.txt.
  • The content of the file differs from the key, stray whitespace aside.
  • The key file is on a different host than the URLs, for example www versus no www.
  • The request for the file redirects off the host, or returns an HTML page.
  • Your host blocks the engine's request even though the file opens in a browser, for example through a bot filter or a country rule.

How to fix it

  • Create a text file named <key>.txt that contains only the key.
  • Upload it so that it opens at https://<host>/<key>.txt, or give its full address as the key file location.
  • Open the address in a browser: you should see only the key.

Next steps

  • Run the key checker with the same site and key. It fetches the key file and tells you what it found.
  • When the check passes, send the batch again from the submission tool.
  • If the check passes but 403 comes back, look at your host's firewall and bot rules for the key file path.
  • The guide covers uploading the key file.