Skip to content

Instantly share code, notes, and snippets.

View marilyn's full-sized avatar

Marilyn C. Cole marilyn

View GitHub Profile
@dimacus
dimacus / gist:5757573
Created June 11, 2013 14:59
Blackhole proxy to block all external calls. Add following configs to your browser creation profile["network.proxy.type"] = 1 profile["network.proxy.http"] = "localhost" profile["network.proxy.http_port"] = 9001 no_proxy_list = "localhost, 127.0.0.1" no_proxy_list += ", #{ENV['PROXY_SERVER_WHITELIST']}" if ENV['PROXY_SERVER_WHITELIST'] profile["…
require 'rubygems'
require 'em-proxy'
require 'http_parser.rb'
require 'uuid'
require 'uri'
PROXY_SERVER_HOST = "127.0.0.1"
PROXY_SERVER_PORT = ENV['PROXY_SERVER_PORT'] || 9001
output = "tmp/blocked_external_urls.log"