wrp/README.md

69 lines
3.6 KiB
Markdown
Raw Normal View History

# WRP - Web Rendering Proxy
2019-05-31 18:28:48 -07:00
2019-11-03 23:55:33 -08:00
A browser-in-browser "proxy" server that allows to use historical / vintage web browsers on the modern web. It works by rendering a web page in to a GIF or PNG image with clickable imagemap.
2019-01-07 17:04:07 -08:00
2019-07-17 13:59:44 -07:00
![Internet Explorer 1.5 doing Gmail](wrp.png)
2019-12-24 02:51:44 -08:00
## Usage
2019-06-05 01:42:17 -07:00
2019-12-24 03:14:29 -08:00
1. [Download a WRP binary](https://github.com/tenox7/wrp/releases/) and run it on a machine that will become your WRP gateway/server.
2019-11-03 23:59:22 -08:00
2. Point your legacy browser to `http://address:port` of WRP server. Do not set or use it as a "http proxy server".
2019-12-25 03:35:48 -08:00
3. Type a search string or a http/https URL and click **Go**.
2019-12-24 02:51:44 -08:00
4. Adjust your screen width/height/scale/#colors to fit in your old browser.
2019-07-12 02:04:35 -07:00
5. Scroll web page by clicking on the in-image scroll bar.
2019-12-24 03:14:29 -08:00
6. Do not use client browser history-back, instead use **Bk** button in the app.
2019-12-25 03:35:48 -08:00
7. To send keystrokes, fill **K** input box and press **Go**. There also are buttons for backspace, enter and arrow keys.
8. Experimentally you can set height **H** to `0` to render pages in to one tall image without the vertical scrollbar. Note it will be large, slow to process, download and display on client browser.
2019-12-25 03:39:07 -08:00
9. Prefer PNG over GIF if your browser supports it. PNG is much faster, whereas GIF requires a lot of additional processing on both client and server.
2019-06-05 01:42:17 -07:00
2019-08-04 01:14:31 -07:00
## Docker
2019-08-04 00:51:55 -07:00
2019-10-14 22:26:32 -07:00
docker hub:
2019-12-24 02:51:44 -08:00
```shell
2019-08-05 00:22:19 -07:00
docker run -d -p 8080:8080 tenox7/wrp
2019-06-04 02:20:43 -07:00
```
2019-10-14 22:26:32 -07:00
gcr.io:
2019-12-24 02:51:44 -08:00
```shell
2019-10-14 22:26:32 -07:00
docker run -d -p 8080:8080 gcr.io/tenox7/wrp:latest
```
2019-08-04 01:14:31 -07:00
## Flags
2019-08-04 00:51:55 -07:00
2019-12-24 02:51:44 -08:00
```flags
2019-08-04 01:14:31 -07:00
-l listen address:port, default :8080
2019-12-24 02:56:36 -08:00
-t image type gif (default) or png, when using PNG number of colors is ignored
2019-12-25 03:35:48 -08:00
-g image geometry, WxHXC, height can be 0 for unlimited, default 1152x600x256
2019-12-24 03:14:29 -08:00
-h headed mode, display browser window on the server
2019-08-04 01:14:31 -07:00
-d chromedp debug logging
-n do not free maps and gif images after use
2019-08-04 00:51:55 -07:00
```
2019-07-17 00:49:36 -07:00
## Minimal Requirements
2019-12-24 03:14:29 -08:00
* Server Gateway should run on a modern hardware/os that supports memory hungry Chrome.
2019-12-25 03:35:48 -08:00
* Client Browser needs to support `HTML FORMs` and `ISMAP`. Typically Mosaic 2.0 would be minimum version for forms. However ISMAP was supported since 0.6B, so if you manually enter url using `?url=...`, you can use the earlier version.
2019-07-17 00:49:36 -07:00
2019-07-13 01:23:34 -07:00
## History
2019-12-24 02:51:44 -08:00
2019-12-24 03:14:29 -08:00
* In 2014, version 1.0 started as a *cgi-bin* script, adaptation of `webkit2png.py` and `pcidade.py`, [blog post](https://virtuallyfun.com/2014/03/03/surfing-modern-web-with-ancient-browsers/).
2019-07-13 01:25:35 -07:00
* Later in 2014, version 2.0 became a stand alone http-proxy server, also support for both Linux/MacOS, [another post](https://virtuallyfun.com/wordpress/2014/03/11/web-rendering-proxy-update//).
2019-07-13 01:23:34 -07:00
* In 2016 the whole internet migrated to HTTPS/SSL/TLS and WRP largely stopped working. Python code became unmaintainable and mostly unportable (especially to Windows, even WSL).
* In 2019 WRP 3.0 has been rewritten in Golang/Chromedp as browser-in-browser instead of http proxy.
2019-12-25 03:35:48 -08:00
* Later in 2019, WRP 4.0 has been completely refactored to use mouse clicks instead using a href nodes. Also in 4.1 added sending keystrokes in to input boxes. You can now login to Gmail. Also now runs as a Docker container. Version 4.5 introduces rendering whole pages in to one tall image image.
2019-06-06 16:46:40 -07:00
2019-12-25 03:35:48 -08:00
## Credits
2019-12-24 02:51:44 -08:00
2019-06-10 15:14:17 -07:00
* Uses [chromedp](https://github.com/chromedp), thanks to [mvdan](https://github.com/mvdan) for dealing with my issues
2019-06-18 14:46:19 -07:00
* Uses [go-quantize](https://github.com/ericpauley/go-quantize), thanks to [ericpauley](https://github.com/ericpauley) for developing the missing go quantizer
2019-06-10 15:14:17 -07:00
* Thanks to Jason Stevens of [Fun With Virtualization](https://virtuallyfun.com/) for graciously hosting my rumblings
2019-07-14 01:40:17 -07:00
* Thanks to [claunia](https://github.com/claunia/) for help with the Python/Webkit version in the past
2019-06-18 14:48:39 -07:00
## Legal Stuff
2019-12-24 02:51:44 -08:00
2019-06-18 14:49:32 -07:00
License: Apache 2.0
Copyright (c) 2013-2018 Antoni Sawicki
2019-06-18 14:48:39 -07:00
Copyright (c) 2019 Google LLC