Giter Club home page Giter Club logo

cf-detect's Introduction

Detect Cloudflare (for Firefox)

An extension for Mozilla Firefox which aims to detect whether the current page uses Cloudflare. It adds an icon to the browser toolbar which indicates the detection status.

This is intended to help users detect which of the sites they visit is using Cloudflare, so that they can take the appropriate actions (e.g. changing their password) if they are worried that they are affected by the cloudbleed bug.

Note: This extension detects whether the page currently uses Cloudflare. It cannot detect whether the page might have used Cloudflare in the past, especially during the time period where it was affected by cloudbleed (i.e. 2016-09-22 thru 2017-02-18). For this, you may check this list.

Installation

The extension is available on addons.mozilla.org.

However, newest versions might appear there with some delay (hopefully this should be less than one day), so the impatient can install the extension from source manually:

  • Clone or download this repository.
  • In Firefox, go to about:debugging.
  • Click "Load Temporary Add-on" and navigate to the file "manifest.json". Double-click/open it.
  • This will only load the add-on for the current Firefox session!

How it Works

The extension analyzes all HTTP(S) requests and checks whether any of them are served by Cloudflare proxies, as identified by certain headers in the HTTP(S) response. Based on the result of this analysis, the icon changes color:

green No requests were served by Cloudflare.

orange Extenal resources were served by Cloudflare.

red The page itself was served by Cloudflare.

Clicking on the icon will show a popup with detailed information about the Cloudflare-using domains.

Notes

  • This extension analyzes all requests made by the browser, though other extensions (e.g. adblockers) may block some requests before they are made.
  • When navigating forward/backward inside a tab, the detection status will reset to neutral. To get the correct status, the page needs to be reloaded. (Though nowadays the reload happens automatically for many webpages.)
  • This is my first WebExtension, and also my first JavaScript project. Use at your own risk!

TODO

  • Analyze performance impact. So far all test show negligible impact.

cf-detect's People

Contributors

traktofon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.