Find what refuses Googlebot with a 403

Blocked due to access forbidden (403) means your server answered Googlebot's request with 403 Forbidden, so Google won't index the page. Google's guide treats this as a server mistake, because it reads a 403 as credentials that were sent and refused, and Googlebot never sends any. On a public page, look for a rule aimed at bots, request volume or location that caught Google's crawler, and let verified Googlebot requests through it.

What blocked due to access forbidden means

  • Search Console files a URL here when Googlebot's request got a 403 back. Google's Page indexing report guide explains that a 403 means the client offered credentials and was turned down, and since its crawler never offers any, the server is sending the code incorrectly. The page won't be indexed while that continues.

  • A page that ranked before isn't safe either. Once Google sees a 403 on an indexed URL, its indexing pipeline removes the URL, and the crawler comes back to it less and less. The HTTP status code guide treats 403 the same as every other 4xx code except 429.

What sends Googlebot a 403

  • Bot protection that reacts to volume

    Firewalls and denial-of-service protection are often set to block unusually high request rates, and Googlebot often makes more requests than a person does. Google names this as one way sites shut it out by accident.

  • A blocklist that matches crawler names

    A rule refusing user agents that contain words like bot or crawler catches Googlebot along with the scrapers it was written for.

  • A country block

    Googlebot's default crawling comes from addresses that appear to be in the US, and Google asks you to treat it like any visitor from that country. Refuse US visitors and you refuse its main crawl.

  • A sign-in wall that answers 403

    Some apps answer 403 instead of 401 to anyone who isn't logged in. Google's fix is to admit visitors who aren't signed in, or to let verified Googlebot requests through.

  • File permissions on the server

    A file the web server can't read, or a folder with no index page, gets a 403 for every client. The 403 Forbidden guide covers those server-side causes.

Google describes protection systems blocking its crawler in the Page indexing report guide, and its US-based and geo-distributed crawling in the locale-adaptive pages guide.

Ask for the page with Googlebot's user agent

# Print the status code for a plain request, then for one with a Googlebot user agent
curl -s -o /dev/null -w '%{http_code}\n' https://yoursite.com/blocked-page
curl -s -o /dev/null -w '%{http_code}\n' \
  -A 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' \
  https://yoursite.com/blocked-page

Read what the two requests return

  • A 403 only on the second request means a rule judges the user agent. Before you loosen it, check whether it's a filter that refuses anything claiming to be Googlebot from an address Google doesn't own, because your test comes from your own address and would fail that check by design. The firewall's log entry for your request says which rule matched.

  • Two 200 responses don't clear the site. Rules based on address, country or request rate never see Googlebot's traffic in this test, so search the server or firewall logs for Googlebot's own requests that got a 403, and confirm each address with Google's verification steps.

How to fix blocked due to access forbidden

  1. Find Googlebot's refused requestsFilter your access or firewall logs for a Googlebot user agent and a 403 status around the crawl date URL Inspection shows. A firewall's event log also names the rule that matched each one.
  2. Confirm the requests came from GoogleRun a reverse DNS lookup on the address, check that the name ends in googlebot.com, then run a forward lookup on that name and confirm it returns the same address. A request that claims to be Googlebot and fails is an impostor you can keep blocking.
  3. Exempt verified Googlebot from the ruleAllow requests whose verified name ends in googlebot.com, or that come from the common crawler IP ranges Google publishes for Googlebot, rather than every request whose user agent says Googlebot.
  4. Give Googlebot the rules its country getsIf you restrict content by location, apply to Googlebot exactly what you apply to people in the country its request comes from, instead of one rule for every crawler.
  5. Recheck an affected URLRun the live test in URL Inspection once the rule changes. It fetches from Google as Google-InspectionTool, so a pass shows that rules based on address let that request in. A rule that matches the word Googlebot in the user agent never sees that name here, so check the log for Googlebot's next requests too.

Frequently asked questions

Is it safe to let Googlebot through my firewall?

Yes, when you match it by address or DNS, and only to the googlebot.com names or Googlebot's IP ranges. Anyone can send a Googlebot user agent, so an exception based on the user agent alone lets scrapers in too. Google's verification guide lists the hostnames to expect and the JSON files of IP ranges, and common-crawlers.json is the one that covers Googlebot.

Why does the live test pass while the report still shows 403?

The report shows the result of Google's last crawl, so the block may already be fixed; the Page indexing report guide suggests comparing that crawl date with when you changed the rule. A rule that reacts to request rate can also let one test through and still trip during a full crawl, so read the firewall log for Googlebot's recent requests too. The live test also fetches as Google-InspectionTool, not Googlebot, and URL Inspection help says a pass only confirms that agent can reach the page.

Why are only some of my pages blocked?

A rule that covers certain paths, such as downloads, search results or an API, refuses Googlebot there and nowhere else, so the affected URLs share a pattern. A rule that reacts to volume starts refusing partway through a crawl instead, and the affected URLs look random. Group the report's examples by path to see which kind you have.