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

How to unblock cardyb on our server #6521

Open
raphaelcockx opened this issue Nov 19, 2024 · 2 comments
Open

How to unblock cardyb on our server #6521

raphaelcockx opened this issue Nov 19, 2024 · 2 comments

Comments

@raphaelcockx
Copy link

First of all, I know quite a few issues have been written about link cards not working. However, I believe in this case the solution does lie on our end if we could just get the right info.

In short: link preview fetching fails because the Akamai configuration for our site is set up to block most bots and crawlers (returning a 403) except for those we whitelisted. As such, if we can create a pattern that matches the cardyb crawler, this would fix the problem. This is an example of a link that fails.

Is there any info on the referrer, user agent and/or ip range being used so we can add a rule?

@matteason
Copy link

I've just tested this - the user agent for Cardy B is (currently) Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Bluesky Cardyb/1.1; +mailto:support@bsky.app) Chrome/W.X.Y.Z Safari/537.36. So it looks like the solution is to allow UAs containing Bluesky Cardyb through (personally I wouldn't add the version number since we don't know how often that's likely to change)

Tested by pointing Cardy B at a https://webhook.site URL

@jessicalc
Copy link

I've just tested this - the user agent for Cardy B is (currently) Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Bluesky Cardyb/1.1; +mailto:support@bsky.app) Chrome/W.X.Y.Z Safari/537.36. So it looks like the solution is to allow UAs containing Bluesky Cardyb through (personally I wouldn't add the version number since we don't know how often that's likely to change)

Tested by pointing Cardy B at a https://webhook.site URL

@matteason Thanks for the webhook.site tip to derive the user agent! Super helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants