Googlebot 和 AWS Cloudfront/S3 - 收到一堆 403

Googlebot & AWS Cloudfront/S3 - Getting a bunch of 403s

我正在托管 my website on AWS through S3 with Cloudfront. I've noticed that Googlebot and also Apex Ping 在访问我的网站时检测到 403 错误。当我自己访问它时,在启用 Chrome 开发人员工具的情况下,我在网络选项卡中看不到任何 4xx 或任何 5xx 错误。我想知道是什么原因造成的。

我怀疑它可能是 Cloudfront 配置。具体来说,我启用了 Custom SSL Certificate 并且正在使用 AWS 生成的证书 (ACM)。使用此选项,我不得不使用 Only Clients that Support Server Name Indication (SNI) 配置。这是否可能导致破损?我的理解是 Googlebot 按照此 post 支持 SNI,所以我对可能导致 403 的原因感到有点困惑。

您的网站目前出现以下错误:

ERROR

The request could not be satisfied.

The Amazon CloudFront distribution is configured to block access from your country. Generated by cloudfront (CloudFront) Request ID: 5i6brNX28KLeWWp8CJ6oSLv96aggZCxlSsMtc6gvZ3I8STS3mtmS9g==

Googlebot 和 Apex Ping 可能会看到相同的响应。

所以问题可能是你需要在你的配置中打开更多的国家。这是在“地理限制设置”页面上完成的。如果您的网站不需要地理限制,那么不要:将“启用地理限制”设置为“否”。