rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: radiodj105 on April 18, 2020, 04:03:20 PM

Title: Connected users (minus yourself)
Post by: radiodj105 on April 18, 2020, 04:03:20 PM
Hi there.
Each time someone connects to my server, he is able to see how many persons are connected (included himself).
Is there any way to see these persons minus one person (himself)?

Thanks in advance.

At the moment, the html text says:

At the moment there are { %connections% } connected users (including yourself).
Title: Re: Connected users (minus yourself)
Post by: Mars on April 18, 2020, 04:25:14 PM
which category of template do you use?  the model integrated in hfs does not display this kind of information

find the line that contains the text "connected users", at report here the content of line




Title: Re: Connected users (minus yourself)
Post by: LeoNeeson on April 19, 2020, 01:44:29 AM
At the moment there are { %connections% } connected users (including yourself).
@Mars: If you add that line in to any template, you will see the results. According to my tests (and info found here (http://rejetto.com/forum/index.php?topic=1939.0) and here (http://rejetto.com/forum/index.php?topic=2901.0)), "%connections%" symbol returns the value for the number of current (active) connections to HFS (but there could be more than one active connection from the same IP, so, it's not an accurate way of knowing how many users are online). If you know how to do it (in Delphi), you could suggest Rejetto some code to filter how many active connections are per IP (counting only one connection per IP, for example, if there are 4 connection from the same IP, then we only count 1 visitor), and we could have in the future a %live-visitors% symbol (or any other symbol name that you or rejetto want to invent). ;D

@radiodj105: You will get a much more accurate results if you use an external service, like Whos.Amung.Us (https://whos.amung.us/) which is a simple widget you can add to the template you use. As far I know, HFS currently doesn't have an accurate way of counting how many users are online. :-\

Cheers,
Leo.-
Title: Re: Connected users (minus yourself)
Post by: Mars on April 19, 2020, 08:20:33 AM
you can have more than one user  per ip , when several connections come from a company

and when all connections pass through SSL, hfs only sees the address 127.0.0.1, which prevents ip filtering from hfs

 ;)
Title: Re: Connected users (minus yourself)
Post by: LeoNeeson on April 19, 2020, 02:57:35 PM
you can have more than one user  per ip , when several connections come from a company
Uppssss!! :o you are right Mars! then my suggestion is useless (there is no way to accurately detect how many users are online!)
(https://forum.lazarus.freepascal.org/Smileys/ExcellentSmileys1/pardon.gif)
Title: Re: Connected users (minus yourself)
Post by: oleikein on July 25, 2020, 04:18:58 PM
you can have more than one user  per ip , when several connections come from a company

and when all connections pass through SSL, hfs only sees the address 127.0.0.1, which prevents ip filtering from hfs https://roadrunneremail.org/

 ;)

Pretty cool.
Title: Re: Connected users (minus yourself)
Post by: rejetto on July 26, 2020, 12:10:47 PM
Each time someone connects to my server, he is able to see how many persons are connected (included himself).
Is there any way to see these persons minus one person (himself)?

a meaningful counting of "people" is a problem in the web world.
The web browser doesn't have a "stable" connection to the server. If you search wikipedia you'll find that http is a "stateless" protocol.
I know when a connection is open and closed, but i don't really know when people "go". The connection can be closedatn any moment by the browser and that doesn't mean the user is gone.

and when all connections pass through SSL, hfs only sees the address 127.0.0.1, which prevents ip filtering from hfs

unless you use the method I posted using nginx ;)