0
0

A browser which is also a server


 invite response                
2020 May 29, 10:35pm   489 views  5 comments

by Patrick   ➕follow (55)   💰tip   ignore  

Does anyone know of a browser which also accepts web requests, meaning it is also a web server?

Seems like it would not be hard to build, but I haven't heard of one.

Comments 1 - 5 of 5        Search these comments

1   Hircus   2020 May 30, 12:18am  

I know you can do it from browser extensions, but otherwise I don't think you can listen on a socket. Extensions get higher permissions and access to more apis.

There is WebRTC though, and you can talk browser to browser with it (I think soon theyll have E2E encryption with it too). But, it needs a 3rd party server so the 2 computers can find each other, even if you know each others ips.

But no built in server. Opera used to have one though.
2   Tenpoundbass   2020 May 30, 7:21am  

Patrick says
Does anyone know of a browser which also accepts web requests, meaning it is also a web server?


Way back in the Windows 98, 2000, and XP days. I was trying to make a browsable Catalog CD, where the CD acted like a Web server.
The problem was, there was no way to make a CD behave like a Webserver, so you couldn't get too dynamic and fancy with it.
I forget all of the pitfalls we had now, but they were many. Basically all you could do, is just browse basic HTML pages with static information on them. You couldn't really make dynamic pages, or use any server side scripting. It was then I realized there needs to be a browser with Client and Server capabilities built in.
The project didn't have that deep of pockets, so we just went with very simple static pages.
3   SunnyvaleCA   2020 May 30, 11:58am  

If you are running macOS, you already have Apache installed and ready to go. It's more locked down than it used to be and there's no longer a System Preferences > Sharing control panel option to turn it on.
4   Tenpoundbass   2020 May 30, 12:34pm  

Man Apache, you guys are missing the whole point of breaking up with the Man!

There's a reason why Chat Apps like AOLIM, and Microsoft's Chat Servers, and the Chat protocol in general was prematurely pulled about the time Facebook and Twitter came on scene. People were starting to make their Chat servers and clients, and software like Trillion allowed them to be aggregated into one integrated App.
5   Patrick   2020 May 30, 12:54pm  

The Min browser ( https://minbrowser.org/ ) looks very customizable, being written in javascript on top of Electron (Chromium and Node).

So one way to break up with The Man is to alter Min so that it:

- includes a node-based web server which serves the browser's cache, which will just be an arbitrarily large hierarchical directory structure on disk
- separates your cache into public and a private cache which only your friends can view
- block all 3rd party content, so no more spying by 3rd party javascript
- blocks all 3rd party cookies
- never makes any network requests or calls home to "check for updates" or for any other reason, unless the user explicitly navigates there
- permanently and irrevocably blocks all requests to Google, Facebook, Apple, and Amazon
- has a built-in ssl certificate so you don't need to request one or deal with that complexity

So no YouTube or anything else which directly betrays your information so that it can be sold or used against you. Websites could still collect and sell your information, but it would be pushed back to the server side and require more work to set up.

You couldn't use this browser for a lot of "normal" surfing which is constantly data-raping you or just won't work because the website has sucked on Google's dick and made the site not work without Google api.js or Recaptchas. In spite of these things, such a browser would have some big advantages:

- great privacy
- censorship resistance: automatically makes available everything public that you surf with it (caching happens now, but that information is not viewable by others)
- easy and explicit cache control by file, just by looking in directories on your own disk, something which has been missing since the beginning of the web; you can easily view anything in your cache, make it permanent, or delete it
- you can surf your own cache offline, which would also be lightning fast because no network involved
- does not require paying for a server, though many ISP's and phones block incoming connections; just install the browser and you have a server!
- no 3rd party advertising at all

Might also be nice to build in a way to comment on any web page, or alter your cached version of it, so that the web becomes a big distributed wiki.

Please register to comment:

api   best comments   contact   latest images   memes   one year ago   random   suggestions