Welcome to the LimeSurvey Community Forum

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

Restrict API calls by IP address

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 9 months ago #202824 by blocka
Restrict API calls by IP address was created by blocka
As an added layer of security on a local LS 3.x install, I'd like to be able to restrict API calls to a small list of source IP addresses.

Can anyone advise how this can be accomplished?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202838 by DenisChenu
Replied by DenisChenu on topic Restrict API calls by IP address
This surely can be done in manual.limesurvey.org/Authentication_plu...t#remoteControlLogin

github.com/LimeSurvey/LimeSurvey/blob/51...rol_handle.php#L3158

Something like this
Code:
    public function remoteControlLogin()
    {
        if (!validIpFuntcion()) {
            die();
        }
        parent::remoteControlLogin();
    }

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose