bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
120 stars 18 forks source link

Access on 1 domain #160

Closed studentAlanMorgan closed 9 months ago

studentAlanMorgan commented 9 months ago

Hello, I would like to know if it is possible to make the transition to the server happen only from 1 domain? so that there is no direct access to the web server via IP. for example, if you enter ip/ui3.htm in the browser, the server will return an error, but if you make the transition from mysite.com, then access is opened. This is how my media server works.

bp2008 commented 9 months ago

Blue Iris does not support that natively, but you can achieve it with reverse proxy software.

For example https://github.com/bp2008/WebProxy which I wrote myself.

studentAlanMorgan commented 9 months ago

@bp2008 I apologize for the impudence, but you can read more about this somewhere. How can I set up exactly what I have in mind?

bp2008 commented 9 months ago

Well here is a basic setup guide I wrote for doing proxying to Blue Iris: https://ipcamtalk.com/threads/webproxy-gui-based-alternative-to-stunnel.72203/

During the setup, you are asked to fill in a Host Binding field, and that is where you put the domain name.

Like this: image

The WebProxy server will only send the traffic to the destination origin when the hostname entered in the browser matches one of the hostnames in the Host Binding. So in this case the hostname in the browser's address bar would need to be mysite.com. If you entered the IP address into the address bar, then the WebProxy server would simply close the connection because it does not match mysite.com.

Of course this all depends on you understanding how port numbers work and how to configure your PC, firewall, router, and DNS records correctly to send the traffic to the WebProxy service instead of directly to Blue Iris.

studentAlanMorgan commented 9 months ago

@bp2008 Thank you. I appreciate your work.