https://github.com/alwaysblank/cover-charge
Intercept page requests to make someone do something.
https://github.com/alwaysblank/cover-charge
Last synced: 4 months ago
JSON representation
Intercept page requests to make someone do something.
- Host: GitHub
- URL: https://github.com/alwaysblank/cover-charge
- Owner: alwaysblank
- Created: 2019-08-29T00:05:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-29T18:28:15.000Z (almost 7 years ago)
- Last Synced: 2025-02-23T08:31:56.889Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cover Charge
Force people to do something (i.e. sign up for a newsletter) before they can
access something (i.e. a page, a download, etc), *but* store a cookie to
authenticate them for future requests for
1) that thing
2) (optionally) other, similar things
## Planning
I have a couple major goals:
- Redirection and blocking should operate without JavaScript (ideally all
server-side).
- Cookies (or other auth storage) should be set only *as-needed*, to optimize
network performance and simplicity. i.e. Set a cookie on the url of an item,
or on a "higher" url to apply to everything below it, but *don't* set a cookie
on the root domain.
- Provide the simplest possible implementation: The intent is that this package
can be transparently added to any project, and then built on top of. This means
it should be an unopinionated as possible, and provide as little styling as
possible (ideally none).