Hi Jan,
I need to work out whether someone is working in the office or from home.
The scenario is: Company has valuable data, when someone quits their job and are allowed to work their notice period, they may no longer be allowed to work from home.
In the case of such a blocked user: if the IP is the same as the external IP for the server, I assume office, otherwise I refuse to load Servoy. I know there may be ways around this such as ssh tunnels or vnc'ing into office, but the users are not technical people and don't have access to the right passwords.
I have already implemented a solution using Patrick's suggestion
- Code: Select all
http://automation.whatismyip.com/n09230945.asp
Grabbing this URL using the http plugin works fine. I can lock myself out using a tick box on my user screen in Servoy and ssh into the Postgres database to grant myself access again.
Are you thinking of adding something like application.server_is_local() to Servoy?