Ladder is a http web proxy.
Ladder is a developer tool for testing and analyzing paywall implementations and content delivery behavior on modern websites.
It allows developers, researchers, and publishers to simulate different client environments (such as browsers and crawlers) and observe how content is served under varying conditions. This makes it useful for debugging paywall configurations, verifying access controls, http headers, and ensuring consistent behavior across different user agents.
Ladder is intended for legitimate testing, research, and quality assurance purposes only. It should only be used in compliance with applicable laws and the terms of service of the target website.
How it works
sequenceDiagram
client->>+ladder: GET
ladder-->>ladder: apply RequestModifications
ladder->>+website: GET
website->>-ladder: 200 OK
ladder-->>ladder: apply ResultModifications
ladder->>-client: 200 OK
Features
- Remove/modify CORS headers from responses, assets, and images ...
- Remove/modify other headers (e.g. Content-Security-Policy)
- Remove/inject custom code (HTML, CSS, JavaScript) into the page
- Apply domain based ruleset/code to modify response / requested URL
- Keep site browsable
- API
- Fetch RAW HTML
- Custom User Agent
- Custom X-Forwarded-For IP
- Docker container (amd64, arm64)
- Linux binary
- Mac OS binary
- Windows binary (untested)
- Basic Auth
- Access logs
- Might break tracking, adds and other 3rd party content
- Limit the proxy to a list of domains
- Expose Ruleset to other ladders
- Robots.txt testing
- Optional TOR proxy
- A key to share a proxied URL
Limitations
Some websites deliver different content (Cloaking) depending on the type of client accessing them (for example, search engine crawlers versus standard web browsers). Ladder can be configured to emulate different client types in order to retrieve publicly accessible content for testing, automation, or research purposes.
However, many websites implement advanced mechanisms to restrict automated access, such as fingerprinting, rate limiting, or behavioral analysis. Ladder does not circumvent such protections and may not function correctly on services that actively restrict or control access.
Third-party tools such as FlareSolverr exist and may be used independently to render web pages in a headless browser environment. These tools are not part of Ladder, and their use may be subject to legal and contractual restrictions. Users are solely responsible for ensuring that their usage complies with all applicable regulations.
Installation
Warning: If your instance will be publicly accessible, make sure to enable Basic Auth. This will prevent unauthorized users from using your proxy. If you do not enable Basic Auth, anyone can use your proxy to browse nasty/illegal stuff. And you will be made responsible for it.
Binary
- Download binary here
- Unpack and run the binary
./ladder -r https://raw.githubusercontent.com/everywall/ladder-rules/main/ruleset.yaml - Open Browser (Default: http://localhost:8080)
Docker
docker run -p 8080:8080 -d --env RULESET=https://raw.githubusercontent.com/everywall/ladder-rules/main/ruleset.yaml --name ladder ghcr.io/everywall/ladder:latest
Docker Compose
curl https://raw.githubusercontent.com/everywall/ladder/main/docker-compose.yaml --output docker-compose.yaml docker-compose up -d
Helm
See README.md in helm-chart sub-directory for more information.
Usage
Browser
- Open Browser (Default: http://localhost:8080)
- Enter URL
- Press Enter
Or direct by appending the URL to the end of the proxy URL: http://localhost:8080/https://www.example.com
Or create a bookmark with the following URL:
javascript:window.location.href="http://localhost:8080/"+location.href
API
curl -X GET "http://localhost:8080/api/https://www.example.com"RAW
http://localhost:8080/raw/https://www.example.com
Running Ruleset
Configuration
Environment Variables
| Variable | Description | Value |
|---|---|---|
PORT |
Port to listen on | 8080 |
PREFORK |
Spawn multiple server instances | false |
USER_AGENT |
User agent to emulate | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
X_FORWARDED_FOR |
IP forwarder address | 66.249.66.1 |
USERPASS |
Enables Basic Auth, format admin:123456 |
`` |
LOG_URLS |
Log fetched URL's | true |
DISABLE_FORM |
Disables URL Form Frontpage | false |
FORM_PATH |
Path to custom Form HTML | `` |
RULESET |
Path or URL to a ruleset file, accepts local directories | https://raw.githubusercontent.com/everywall/ladder-rules/main/ruleset.yaml or /path/to/my/rules.yaml or /path/to/my/rules/ |
EXPOSE_RULESET |
Make your Ruleset available to other ladders | true |
ALLOWED_DOMAINS |
Comma separated list of allowed domains. Empty = no limitations | `` |
ALLOWED_DOMAINS_RULESET |
Allow Domains from Ruleset. false = no limitations | false |
FLARESOLVERR_HOST |
URL for the FlareSolverr service for Cloudflare bypass (optional) | http://localhost:8191 |
ALLOWED_DOMAINS and ALLOWED_DOMAINS_RULESET are joined together. If both are empty, no limitations are applied.
| BASE_PATH | Base path for the proxy, useful if you want to run the proxy on a subpath (e.g. http://localhost:8080/proxy/) | `` |
Ruleset
It is possible to apply custom rules to modify the response or the requested URL. This can be used to remove unwanted or modify elements from the page. The ruleset is a YAML file, a directory with YAML Files, or an URL to a YAML file that contains a list of rules for each domain. These rules are loaded on startup.
There is a basic ruleset available in a separate repository ruleset.yaml. Feel free to add your own rules and create a pull request.
