Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

PR : Real Ip address into answer ? reverse proxy

  • gedalsas
  • gedalsas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago - 2 years 9 months ago #217952 by gedalsas
Hi guys , hi team LS , hi everyone ! please keep in mind your job and your contributions are really appreciated !
Thank you so much ! LS is a great product with awesome functionalities.
We've been using this software for a while without any problem, and wonder if ip address saved could be more accurate / updated :

Let's say customer ip adress is store at the first time the survey is submitted with IP1. Survey is "tokenized", customer can update results with a link including his(her) token.
If Survey results are updated,

Question 1 :: How about is the state of the ipaddr field when another field is updated by customer ? Would you confirm / inform that the ipaddr field value is updated too ? thx
Another point is LS behind a reverse proxy. For some other websites we use :
Code:
$customer_ip = stristr($_SERVER['HTTP_X_FORWARDED_FOR'], ',') ? trim(end(explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']))) : $_SERVER['HTTP_X_FORWARDED_FOR'];
Question 2 :: Could you tell us more about the ip address recognition mecanism when LS behind reverse proxy ? thx

This is just thoughts. Have a nice day ! Go on with this great project !
Last edit: 2 years 9 months ago by gedalsas. Reason: code
The following user(s) said Thank You: jelledj
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose