• Resolved HKCCCC IT

    (@hkcccc)


    Our site is behind Nginx reverse proxy, we set IP address detection to HTTP_X_FORWARDED_FOR and it is working fine. Since 5.1.6 all IP address in the log files are REMOTE_ADDR which is the nginx server, not the client IP. We have to rollback to 5.1.5 and since then we tried every new versions up to 5.2.1 and the issue is still there. Any idea?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @hkcccc

    Can you please cross check you have correct IP detection settings set WP Security > Settings > Advanced settings tab and shows correct IP?

    From AIOS 5.1.6 change is it gets the IP retrieve method value of “aiowps_ip_retrieve_method” in wp-content\uploads\aios\firewall-rules\settings.php can you please cross check it is 2 = HTTP_X_FORWARDED_FOR,? if not please try update IP detection settings and make sure it is updated in settings.php.

    If there is any restriction and this file not getting updated might be an issue.

    aiowps_ip_retrieve_method":"2", 

    Regards

    Thread Starter HKCCCC IT

    (@hkcccc)

    Thank you very much, problem solved!

    I found that the aiowps_ip_retrieve_method is not in the settings.php, after checking it turns out that the php files does not have permission for WordPress to write. I added the setting but not working, so I uninstalled and re-install the plugin, set the file permission again and everything’s fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IP address detection not working’ is closed to new replies.