Like 20 years ago I've used a program called Teleport Pro, to do something similar.
I would dial up with my phone modem when the internet access was cheap (during the night), it would automatically browse a page I provided, and in the morning I would have the page ready to read. Fun times with 10 to 20 kb/s speeds.
I had a similar experience, but I also think Internet Explorer saved the websites you visited to browse them later in offline mode, right? I remember some times I couldn't know if I was online or not because the website was cached, i had to visit a different website that I never visited before to check my connection status.
I’m curious of why did you go on the path of using chrome debugging functionality instead of implementing an HTTP proxy which would provides the benefit of behind browser-agnostic too.
One thing I can imagine is the fact that chrome is using system proxy settings. That means that changing them will affect all other apps on the machine and could save a lot of garbage requests you don't actually need.
On the other hand user agent filtering could be implemented to partially solve this.
Chrome can accept proxy settings from the command line do all you'd need to do would be to change the shortcut to Chrome.
The more dangerous part would be doing TLS MitM to allow HTTPS content to be recorded. This is well documented but still a potential security issue if the certificate somehow gets picked up by malware or something.
After reading this I was wondering if it might be fun to write a HTTP-proxy that a) recorded everything, in an SQLite database, and b) presented a localhost-server which would let you search that content.
I suspect it would get very very very busy, with tracking-pixels, etc, but if you only made it archive text/plain, text/html, and similar content-types it might be a decent alternative to bookmarks, albeit only on a single host/network. Wouldn't be hard to knock up a proof of concept, perhaps I should do that this evening.
Great feature. Though it feels like a UI misstep that the user had to use npm to switch between recording and browsing. A nicer solution could be a chrome extension button, or access the archived version via a synthetic domain. E.g. example.com.archived
Thanks for compliment. I totally agree re misstep and want to improve that.
Once the library server is implemented, you'll be able to browse to it (localhost:8080 or so) and access your archive from there. Nice idea on synthetic domain, that might yield another way to do.
There's also some 'magic' potential here to have a proxy that detects whether there's a live network interface or not (including some sanity checking against captive portals), passes through the live sites while recording when there is a connection, and serves from the last recorded versions when there isn't.
Comments (97) 24 threads
Earlier commentsI would dial up with my phone modem when the internet access was cheap (during the night), it would automatically browse a page I provided, and in the morning I would have the page ready to read.
Fun times with 10 to 20 kb/s speeds.
May you expand on that please?
On the other hand user agent filtering could be implemented to partially solve this.
The more dangerous part would be doing TLS MitM to allow HTTPS content to be recorded. This is well documented but still a potential security issue if the certificate somehow gets picked up by malware or something.
I suspect it would get very very very busy, with tracking-pixels, etc, but if you only made it archive text/plain, text/html, and similar content-types it might be a decent alternative to bookmarks, albeit only on a single host/network.
Wouldn't be hard to knock up a proof of concept, perhaps I should do that this evening.
I used the wonderful tool mitmproxy for both recording and serving.
https://www.oreilly.com/library/view/squid-the-definitive/05...
You'd have to mitm ssl unfortunately:
https://wiki.squid-cache.org/Features/MimicSslServerCert
As for proxy switching, in addition to command line options, there's
https://chrome.google.com/webstore/detail/proxy-switcher-and...
Very convenient for using ssh as a socks5 proxy, for example.
Once the library server is implemented, you'll be able to browse to it (localhost:8080 or so) and access your archive from there.
Nice idea on synthetic domain, that might yield another way to do.
One of the things I miss most about the old web was how trivial it was to local mirror any website. It was great!
All comments shown.
Couldn't load more comments. Check your connection and try again.