Skip to content

Cloudflare CDN issue in China: Assets from mirrors.creativecommons.org can not be loaded #1197

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

Closed
1 task
Phuker opened this issue Nov 3, 2020 · 7 comments
Closed
1 task
Assignees
Labels
🚦 status: awaiting triage Has not been triaged & therefore, not ready for work

Comments

@Phuker
Copy link

Phuker commented Nov 3, 2020

Description

Button & icon images in mirrors.creativecommons.org can not be loaded, blocked by Cloudflare captcha. The settings in Cloudflare CDN might be inappropriate.

I'm not sure whether here is the right place to report this problem, if it's not then I'm sorry.

Reproduction

  1. Create a simple HTML file with these contents:
<img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" />
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/by-nc-nd.svg" />
  1. Open a incognito private window in your browser to simulate a new visitor, and open this file.
  2. Boom, images can not be loaded. If a new visitor has not solved a captcha, the images can not be loaded.

Expectation

Images be loaded

Screenshots

error

Environment

  • Device: Laptop
  • OS: Windows & macOS
  • Browser: Chrome, Firefox, Safari
  • Version: all latest

Resolution

  • I would be interested in resolving this bug.
@obulat
Copy link

obulat commented Nov 3, 2020

Thank you very much for reporting this issue, it's the right place for it. We will investigate.

@kgodey
Copy link
Member

kgodey commented Nov 4, 2020

@Phuker we are unable to reproduce, what is the location you are trying to load these images from?

@Phuker
Copy link
Author

Phuker commented Nov 4, 2020

@Phuker we are unable to reproduce, what is the location you are trying to load these images from?

If you mean geolocation, I'm in China, and I tested on all my cloud servers again, it seems the problem is narrowed down.

This time I ran this command:

curl -vv 'https://mirrors.creativecommons.org/presskit/icons/cc.svg'

There is no problem in Japan and the US, I can get a HTTP/2 200, image/svg+xml response.

But all requests from China got a HTTP/2 403, text/html captcha challenge response. It seems that Cloudflare blocks requests from China.

And FYI, I found this: Cloudflare community: Users in China Seeing Captcha

@zackkrida
Copy link
Member

I am going to move this to a more general location, as it is relevant to any project using https://mirrors.creativecommons.org, not just this one. Thank you for sharing @Phuker

@zackkrida zackkrida transferred this issue from creativecommons/chooser Feb 2, 2021
@zackkrida zackkrida changed the title Images in mirrors.creativecommons.org can not be loaded, blocked by Cloudflare captcha Cloudflare CDN issue in China: Assets from mirrors.creativecommons.org can not be loaded Feb 2, 2021
@zackkrida zackkrida added the 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work label Feb 2, 2021
@stevenjoezhang
Copy link

Is it possible to publish an official package containing cc button & icon images to npm? In this way, users will be able to load images through CDN providers such as jsdelivr or unpkg

@obulat
Copy link

obulat commented May 2, 2021

The assets are part of the Vocabulary package, and you can actually use them through jsdelivr /unpkg. Here you can find some more information: https://cc-vocabulary.netlify.app/?path=/docs/vocabulary-usage--page

@stevenjoezhang
Copy link

Thanks very much! I have confirmed that the badge can be loaded like this

<img src="https://cdn.jsdelivr.net/npm/@creativecommons/vocabulary@2020.11.3/assets/license_badges/big/by.svg">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚦 status: awaiting triage Has not been triaged & therefore, not ready for work
Projects
None yet
Development

No branches or pull requests

6 participants