Shields: Badge request: Cloudflare

Created on 9 Jan 2019  路  11Comments  路  Source: badges/shields

:clipboard: Description

  • Which service is this badge for: Cloudflare
  • What sort of information should this badge show?
    If the website is using Cloudflare CDN or not.
    CloudflareCDN | active
    CloudflareCDN | offline

:link: Data

Where can we get the data from?

  • Is there a public API?
    Yes, there is.
  • Does the API requires an API key?
    Yes.
  • Link to the API documentation.
    https://api.cloudflare.com/

I have limited technical knowledge so I am not sure if the API allows to create the badge I am looking for, but I can see the documentation is huge and I am sure some other badges could be created from this one.

They also have this badge:
https://www.cloudflare.com/logo/
"Dynamic Web Badges
To place these web badges on your website, copy the code next to the badge you want, and paste it where you want to put it on your website. Use the drop-down menu to choose the color you want before copying.

How Is It Dynamic?
Dynamic web badges change depending on the status of your website on Cloudflare. If it is active on Cloudflare, the cloud icon will be orange. If it is not active on Cloudflare, the cloud icon will disappear."
Which would be great to have a shield design for the same thing.

Thanks!

service-badge

All 11 comments

Hi! Thanks for the suggestion. Can you explain a little more about why this badge should be implemented and how it would be used?

I am creating some reports for websites, and there is a section for security, current status and performance.
I am using a lot of the badges for that (I just discover this and I am amaze with the project! :)
Detecting the cloudflare on the report with a badge will make it really easy.
It also can be used on the websites, within the admin part of it to have a quick look of the status of other stuff that is important for the website.
I have much more ideas of other services but I was looking into the code on how to create them and I have no idea how to start coding that (I am not a developer, just know some few things).
So I thought I could help the project suggesting and testing things. :)

Thanks for explaining. That's super helpful!

We welcome all types of contributions. Improving documentation is an especially good way to help!

It looks like the API requires account specific cred info to be sent with the request which could make this one tricky outside of self-hosted Shields instances.

https://api.cloudflare.com/#getting-started-requests

Requests
Requests must be sent over HTTPS with any payload formatted in JSON. All requests must include both and headers to authenticate. Requests that use can use that instead of the Auth-Key and Auth-Email headers.

Name | Format | Description
-- | -- | --
API Key | X-Auth-Key | API key generated on the "My Account" page
Email | X-Auth-Email | Email address associated with your account
User Service Key | X-Auth-User-Service-Key | A special Cloudflare API key good for a restricted set of endpoints. Always begins with "v1.0-", may vary in length.

Oh, not sure I understand that completely but I found also this one:
https://www.cloudflarestatus.com/api
it is a different thing, as it will be just a badge for the status of their services on different points of the world, but could be a nice badge too.
Which is really a statuspage badge, and maybe that is a complete different thing.

We can't really implement those 'using Cloudflare' badges, but we could have, for example, a CloudFlare category and implement some monitors from CloudflareStatus, like the CDN regions or various core CloudFlare features.

@planetahuevo you wouldn't happen to be leveraging the fact #1880 added cookies to hundreds of thousands of websites and using it to find out who might not be in compliance with GDPR cookie consent now would you? FYI: #2986

I do not understand what do you mean at all. Can you rephrase it?
Thanks

It's all good. Just trying to connect some dots that probably aren't there. 馃憤

Hi @jhabdas. We'll be happy to discuss your concerns with CloudFlare over on #2986.

However, please do not attack other members of the Shields community, or accuse them of malicious intent, especially without any supporting evidence.

I'm going to mark these comments as off topic, and we can continue the dialog in the other thread

Was this page helpful?
0 / 5 - 0 ratings

Related issues

techtonik picture techtonik  路  3Comments

korenyoni picture korenyoni  路  3Comments

niccokunzmann picture niccokunzmann  路  3Comments

paulmelnikow picture paulmelnikow  路  3Comments

PyvesB picture PyvesB  路  3Comments