An open API service indexing awesome lists of open source software.

https://github.com/featurist/blocker

An HTTP proxy that blocks unwanted requests
https://github.com/featurist/blocker

Last synced: 10 months ago
JSON representation

An HTTP proxy that blocks unwanted requests

Awesome Lists containing this project

README

          

# Blocker

A little HTTP proxy that blocks access to URLs based on a regular expression.

### Why?

Sometimes it helps to stop your web browser or other web client from downloading content or executing scripts from particular URLs, for speed, convenience, or privacy.

### Install

* Install Ruby 1.9 or later (blocker is based on [goliath](https://github.com/postrank-labs/goliath))

* gem install blocker

### Usage

require 'blocker'

proxy = Blocker::Proxy.new /418/
proxy.start

# curl --proxy 127.0.0.1:9876 httpbin.org/status/200
# curl --proxy 127.0.0.1:9876 httpbin.org/status/418

proxy.stop

### License

MIT license, for full details please see the LICENSE file.