update README
This commit is contained in:
14
README.md
14
README.md
@@ -17,6 +17,7 @@ Certain sites may display missing images or encounter formatting issues. This ca
|
|||||||
### Features
|
### Features
|
||||||
- [x] Bypass Paywalls
|
- [x] Bypass Paywalls
|
||||||
- [x] Remove CORS headers from responses, assets, and images ...
|
- [x] Remove CORS headers from responses, assets, and images ...
|
||||||
|
- [x] Apply domain based ruleset/code to modify response
|
||||||
- [x] Keep site browsable
|
- [x] Keep site browsable
|
||||||
- [x] API
|
- [x] API
|
||||||
- [x] Show RAW HTML
|
- [x] Show RAW HTML
|
||||||
@@ -29,7 +30,6 @@ Certain sites may display missing images or encounter formatting issues. This ca
|
|||||||
- [x] Disable logs
|
- [x] Disable logs
|
||||||
- [x] Custom User Agent
|
- [x] Custom User Agent
|
||||||
- [x] Custom X-Forwarded-For IP
|
- [x] Custom X-Forwarded-For IP
|
||||||
- [ ] Load domain based ruleset on startup to modify response
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -59,15 +59,15 @@ docker-compose up -d
|
|||||||
3) Press Enter
|
3) Press Enter
|
||||||
|
|
||||||
Or direct by appending the URL to the end of the proxy URL:
|
Or direct by appending the URL to the end of the proxy URL:
|
||||||
http://localhost:8080/https://www.google.com
|
http://localhost:8080/https://www.example.com
|
||||||
|
|
||||||
### API
|
### API
|
||||||
```bash
|
```bash
|
||||||
curl -X GET "http://localhost:8080/api/https://www.google.com"
|
curl -X GET "http://localhost:8080/api/https://www.example.com"
|
||||||
```
|
```
|
||||||
|
|
||||||
### RAW
|
### RAW
|
||||||
http://localhost:8080/raw/https://www.google.com
|
http://localhost:8080/raw/https://www.example.com
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
@@ -83,3 +83,9 @@ http://localhost:8080/raw/https://www.google.com
|
|||||||
| `LOG_URLS` | Log fetched URL's | `true` |
|
| `LOG_URLS` | Log fetched URL's | `true` |
|
||||||
| `DISABLE_FORM` | Disables URL Form Frontpage | `false` |
|
| `DISABLE_FORM` | Disables URL Form Frontpage | `false` |
|
||||||
| `RULES_URL` | URL to a ruleset file | `https://raw.githubusercontent.com/kubero-dev/ladder/main/ruleset.yaml` |
|
| `RULES_URL` | URL to a ruleset file | `https://raw.githubusercontent.com/kubero-dev/ladder/main/ruleset.yaml` |
|
||||||
|
|
||||||
|
### Ruleset
|
||||||
|
|
||||||
|
It is possible to apply custom rules to modify the response. This can be used to remove unwanted or modify elements from the page. The ruleset is a YAML file that contains a list of rules for each domain and is loaded on startup
|
||||||
|
|
||||||
|
See in [ruleset.yaml](ruleset.yaml) for an example.
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
- match: <script\s+([^>]*\s+)?src="(/)([^"]*)"
|
- match: <script\s+([^>]*\s+)?src="(/)([^"]*)"
|
||||||
replace: <script $1 script="/https://www.example.com/$3"
|
replace: <script $1 script="/https://www.example.com/$3"
|
||||||
injections:
|
injections:
|
||||||
- position: .left-content article .post-title # Position where to inject the code
|
- position: .left-content article .post-title # Position where to inject the code into DOM
|
||||||
code: |
|
code: |
|
||||||
<script>
|
<script>
|
||||||
window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user