in reply to Re^5: Getting the client IP in Apache, version 2.4
in thread Getting the client IP in Apache, version 2.4

Yes, that is the first thing I tried. But none of the remote_* or client_* methods seem to be defined for Apache2::Connection. I could get useragent_ip, but I'm trying to use this to blacklist malicious users, and I suspect an attacker could spoof that easily.

  • Comment on Re^6: Getting the client IP in Apache, version 2.4

Replies are listed 'Best First'.
Re^7: Getting the client IP in Apache, version 2.4
by haukex (Archbishop) on Nov 27, 2019 at 23:31 UTC
    But none of the remote_* or client_* methods seem to be defined for Apache2::Connection.

    That sounds quite strange to me - but as I said, I'm not an expert on mod_perl anymore, maybe another Monk will know more if you post a new question. What version does Apache2::Connection report? (i.e. $Apache2::Connection::VERSION)

    Minor edits shortly after posting.

      2.000010

      Can't locate object method "client_ip" via package "Apache2::Connectio +n"
      Can't locate object method "remote_ip" via package "Apache2::Connectio +n"