• Resolved Blutarsky

    (@blutarsky)


    It would be fantastic if you could add ip geolocation to email alerts, as it would give admins an immediate overview where the login is occurring.

    You could also create a table that will store username/IP pairing useful when youl’d like to track user login locations….

Viewing 8 replies - 1 through 8 (of 8 total)
  • yorman

    (@yorman)

    Since we are talking about WordPress plugins which are usually — if not always — written using the PHP programming language, I am going to assume that you are suggesting to add support for geo-location using the well-known GeoIP PHP Module [1]. Unfortunately, this cannot be accomplished without high-level access to each server that is hosting the website using the plugin because the installation of the GeoIP module requires both root access to install the databases (in some cases it can be skipped) and root access to install the respective PHP module (unless you are using a modern version of PHP that can read the databases using the raw files).

    Many people who use the plugin are hosting their websites in shared hosting accounts, an environment that is so restrictive that asking for SSH access is just a dream. Implementing this feature would require not only time on development but also additional time on support because I would need to explain every single person in a shared hosting account what do they need to do in order to have this feature working in their web server.

    As you can see, it’s a lot of work for little return.

    However, I will add this feature request to our internal issue tracker and let my project manager decide what to do with it in the future. But I cannot guarantee its implementation. Thank you for the suggestion though.

    Thread Starter Blutarsky

    (@blutarsky)

    Thanks for your reply!

    You could add this as an option for admins that have professional accounts and may add/request for additional modules on the installation, leaving this disabled by deafult.

    I believe this is a strong feature to stop unauthorised logins.

    For now, maybe you could simply add the hostname, after the ip address?

    Seems to be a standard PHP feature: https://php.net/manual/en/function.gethostbyaddr.php

    yorman

    (@yorman)

    Feature implemented with commit #43627d5 [1].

    Feel free to install the development version of the code from here [2] or wait until the official release of the next version of the plugin which will happen in a couple of weeks when my co-workers have finished the review of all the changes and all the testing has been done.

    Thank you for the suggestion.

    [1] https://github.com/cixtor/sucuri-wordpress-plugin/commit/43627d5
    [2] https://github.com/cixtor/sucuri-wordpress-plugin

    Thread Starter Blutarsky

    (@blutarsky)

    Fantastic, thanks!

    Thread Starter Blutarsky

    (@blutarsky)

    Yorman, has this feature been added? I can’t find any setting to add hostname to the email alert subject….

    I released the modification that was applied in that commit referenced in my previous comment, but now I realize that I misunderstood your initial feature request. What you want is to have the hostname in the email subject, but I added it into the email body.

    I have implemented the code to include the hostname (reverse address of the user IP address) in this commit [1]. However, we do not release new versions of the plugin without passing the changes through an arduous testing process that takes several weeks. You will have to install the development version [2] of the code to get this option before is publicly released.

    [1] https://github.com/cixtor/sucuri-wordpress-plugin/commit/da117a8
    [2] https://github.com/cixtor/sucuri-wordpress-plugin/archive/master.zip

    Thread Starter Blutarsky

    (@blutarsky)

    Thanks Yorman, very helpful as always!

    Kudos, Yorman!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add geoIP location’ is closed to new replies.