Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is custom CloudFlare configuration needed for readthedocs.io? #11529

Open
dimaqq opened this issue Aug 8, 2024 · 9 comments
Open

Is custom CloudFlare configuration needed for readthedocs.io? #11529

dimaqq opened this issue Aug 8, 2024 · 9 comments
Labels
Needed: more information A reply from issue author is required Support Support question

Comments

@dimaqq
Copy link

dimaqq commented Aug 8, 2024

Details

Expected Result

Either being able to use social previews, or clean error if previews are broken

Actual Result

Screenshot 2024-08-08 at 11 56 54

Example solution: https://community.cloudflare.com/t/attention-required-message-when-sharing-link/88999/3

@humitos
Copy link
Member

humitos commented Aug 8, 2024

Hi. I'm not sure to understand the issue. Can you expand on what you are trying to do and what's the error you are getting?

@humitos humitos added Needed: more information A reply from issue author is required Support Support question labels Aug 8, 2024
@dimaqq
Copy link
Author

dimaqq commented Aug 8, 2024

I imagine that the fact that rtd is proxies by cloudflare is configured in rtd, something that I don’t have access to.

cloudflare, in turn shows a “I’m not a robot” page when Facebook tries to load a “social image”. Because that’s server-to-server communication, human check can never pass.

instead, rtd’s cloudflare account should be configured to allow machine/direct/non-browser access from a white list of ip addresses.

@humitos
Copy link
Member

humitos commented Aug 8, 2024

Thanks for the explanation. I'm pinging @ericholscher here because I think he will have more context about this.

@ericholscher
Copy link
Member

Seems like the site is working to me?

-> curl -IL https://ops.readthedocs.io/en/latest/
HTTP/2 200 

@dimaqq
Copy link
Author

dimaqq commented Aug 9, 2024

The site is working fine, it's facebook loading the "social image" or preview that doesn't work.

@dimaqq
Copy link
Author

dimaqq commented Aug 9, 2024

You can use this tool from facebook to debug:

https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fops.readthedocs.io%2F

@dimaqq
Copy link
Author

dimaqq commented Aug 9, 2024

Btw, this seems to affect all projects on .io, heres pypi:aapns

https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Faapns.readthedocs.io%2Fen%2Flatest%2F

@dimaqq
Copy link
Author

dimaqq commented Aug 9, 2024

CloudFlare advisees to "check your security events in your Cloudflare dashboard"

ref: https://community.cloudflare.com/t/link-preview-is-not-working/643722/2

@ericholscher
Copy link
Member

Oh... I'm guessing this is an issue from the locked down configuration we have for Facebook's AI crawler which is spamming our site: https://about.readthedocs.com/blog/2024/07/ai-crawlers-abuse/ -- is there a specific user agent that they are using for these requests, we can. perhaps unblock it, but their abusive behavior is pretty awful, so might not be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: more information A reply from issue author is required Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants