I have a reverse proxy and need to execute a bash script each time somebody connects to it. What is the right way to do it? I need to update a database. A parameter must be the public IP of the client.