Skip to content

Minifier service that translates HTTP requests to DNS URI record lookups and redirects

License

Notifications You must be signed in to change notification settings

brinkmanlab/url_minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Minifier Service

Minifier service that translates HTTP requests to DNS URI record lookups and redirects.

Request paths are converted to subdomains and appended to the request hostname before looking for a record. For example, https://goto.brinkmanlab.ca/foo/bar will query the DNS URI record bar.foo.goto.brinkmanlab.ca.

Any URL query parameters in the request url are appended to the redirect url.

Deployment

This script is intended to be deployed as a CloudFlare worker. Alternatively it can be independently hosted using the cloudflare-workers-local NPM package.

About

Minifier service that translates HTTP requests to DNS URI record lookups and redirects

Resources

License

Stars

Watchers

Forks