rejetto forum

Connected users (minus yourself)

0 Members and 1 Guest are viewing this topic.

Offline radiodj105

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
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).


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
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




« Last Edit: April 18, 2020, 04:31:53 PM by Mars »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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 and here), "%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 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.-
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
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

 ;)
« Last Edit: April 19, 2020, 08:24:07 AM by Mars »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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!)
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline oleikein

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
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.
« Last Edit: July 26, 2020, 02:03:07 PM by oleikein »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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 ;)