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
- Host: GitHub
- URL: https://github.com/featurist/blocker
- Owner: featurist
- License: other
- Created: 2013-06-05T14:06:17.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-23T23:54:53.000Z (about 12 years ago)
- Last Synced: 2025-01-20T11:21:37.615Z (12 months ago)
- Language: Ruby
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.