Chromium extension for bypassing censorship in Russia
Go to file
Ilya Ig. Petrov 5ea4cb1a25 bump 0.0.0.5
2016-01-18 02:09:55 +05:00
extensions/chromium bump 0.0.0.5 2016-01-18 02:09:55 +05:00
pac-generator news pacs, news results 2015-12-07 08:56:12 +05:00
pac-performance-analyses Update README.md 2016-01-06 19:04:39 +05:00
.gitignore did the survey, modified extension 2015-11-28 01:47:27 +05:00
package.json restructured folders 2015-12-21 02:04:34 +05:00
README.md Update README.md 2016-01-07 01:16:41 +05:00

Russian Anti-Censorship on PAC-Scripts

This repo contains:

  1. Chrome Extension to bypass censorship in Russia: WebStore | Sources
  2. Proof of concept PAC-script generator based on https://github.com/zapret-info/z-i
  3. PAC-scripts performance analyses of scripts generated
  4. Based on the research of step 3 the final PAC-generator was written as a Google App Script in JavaScript which is triggered every two hours to generate and publish PAC-script on Google Drive (direct link).

Why I do This

I believe information mustn't be blocked based on political or other subjective views.

My maxim is "Your freedom ends when it starts to confine the freedom of others".

See my other arguments against censorship (ru)

Looking at how Russian government distorts TV and blocks critics of Putin, I decided to write an anti-censorship extension for Chromium before they strike me first.

How it Works

  1. PAC script is a JavaScript file, triggered on every URL request, which says browser which proxy to use if any for this particular URL.
  2. The Chrome Extension sets PAC script in browser settings and keeps it synced with PAC script on the server (offering one on Google Drive, Antizapret or on Anticenz).
  3. On every request PAC script checks if host is blocked OR if it's IP is blocked using switch(..) {..} trie-like structure (Google Drive PAC script).
    Antizapret PAC script checks for IPs only with indexOf.
    Anticenz PAC script checks for hosts and IPs with indexOf, but lacks some IPs.
  4. If address is blocked PAC script returns proxy server to the browser: Antizapret, or Anticenz if the first one fails.
  5. PAC scripts on servers are updated periodically from https://github.com/zapret-info/z-i