1. Home
  2. Knowledge Base
  3. How to Fix 403 Forbidden Error with IndexNow?

How to Fix 403 Forbidden Error with IndexNow?

If you see a 403 Forbidden error when you try to access the IndexNow key location, don’t worry – you’re not alone. This can be a common issue for some users, but it’s easy to fix.

403 Forbidden Indexnow error

In this knowledge base article, we’ll walk you through the steps so you can index your website with IndexNow. We’ll also explain what might be causing the 403 Forbidden error in the first place.

Let’s get started!

1 What Causes the 403 Forbidden Error with IndexNow?

There are a few possible reasons why you might be seeing the 403 Forbidden error when trying to access the IndexNow. The most likely explanation is that the text file containing the API key has not been created automatically. This can be due to a plugin conflict.

There are two simple steps that you can take to fix the 403 Forbidden error with IndexNow. Let’s check them out:

2 Method One: Change the API Key in Rank Math

2.1 Change API Key

The first thing you should try is changing the API key from within the Rank Math plugin. The API key field displays the API key that Rank Math has generated automatically for your website. In addition, this API key helps you prove the ownership of your site to IndexNow-related search bots.

In order to Change API Key, you need to navigate Rank Math > Instant Indexing > IndexNow API settings > API Key. Then click on the Change Key button.

Change API Key

2.2 Check API Key Location  

Once you’ve done that, clear the cache and check to see if your API key is accessible to search engines. In order to do this, click on the Check Key button available under the API Key location. A new tab will open and lead to the location where Rank Math hosts the API key.

Check API key location

If the new tab displays your API key, then you can rest assured that the API key will be served to search engines for verifying your site (provided this page is not blocked through robots.txt).

2.3 Check the History

The IndexNow History tab in Rank Math’s Instant Indexing shows you all of the URLs you have submitted, as well as the response codes associated with each URL.

A “200 – OK” response code, this means that the URL was successfully submitted and should be indexed soon. Checking the history of your submissions can help you ensure that your URLs are being properly processed and indexed in a timely manner.

For further ado, see the screenshot below:

IndexNow History

Note: Users will initially see the “202 – Accepted” status. It means that IndexNow API has accepted the request, but the site is yet to be verified with the API Key.

3 Method Two: Add the Text File Manually

If changing the API key from within Rank Math doesn’t work, don’t worry. There’s another simple fix. All you need to do is add the text file containing the API key manually to the root of your website. 

Here’s how to do it:

3.1 Create a Text File

First, you’ll need to create a text file and name it [your_api_key].txt. Make sure that the file name includes your API key.

Next, you’ll need to add the API key to the text file. The key should be the only thing included in the file – no extra spaces or characters.

API key for IndexNow

3.2 Upload the Text File

Once you’ve done that, you’ll need to upload the text file to the root of your website. You can do this using an FTP client or cPanel’s File Manager.

Let’s walk through the process of logging onto a server using FTP. First, you need to collect the information you need – the FTP credentials (username and password), the FTP server address, and the document root directory.

Filezilla Login

Once you have all this information, you can connect to your server using an FTP client like FileZilla.

By the way, if you don’t have Filezilla, you can download it for free from the project’s site. It’s available on all platforms, 

Once you have all the information entered, click the “Quickconnect” button.

Quickconnect

Now that you’re connected to your server, it’s time to upload the text file containing your API key.

First, open the local site folder on your computer. It’s the folder where you saved the text file with the API key.

Next, open the remote site folder. It’s the folder on your server where your WordPress site is located. In most cases, it’s the “public_html” folder.

public_html folder

Once you have both folders open, drag the text file from the local site folder to the remote site folder.

The file will start uploading immediately, and you should see it in the remote site folder when it’s done.

Once the text file is in the right location, you should be able to access the IndexNow API key from its location and search engines can make use of it to verify your site.

4 Wrapping Up

And that’s it! Those are two simple steps that you can take to fix the 403 Forbidden error when trying to access the IndexNow API key.

We hope this article helped you learn how to fix the 403 Forbidden error. If you have any doubts or questions related to this matter, please don’t hesitate to reach out to our support team. We are available 24×7, 365 days a year, and are happy to help you with any issues that you might face.

Was this article helpful?

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Learn more about the PRO Version

Still need help?

?

Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket