WordPress.org

Ready to get started?Download WordPress

Forums

WP Slimstat
[resolved] [Plugin: WP SlimStat] Anonymize IP-Addresses (4 posts)

  1. hebbet
    Member
    Posted 3 years ago #

    Please add an option for anonymizing the ip-adresses of visitors.
    remove the last part of it should be enough.

  2. camu
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Hebbet,

    in order to do that, you may want to edit the source code of my plugin, look for this line

    $stat['ip'] = sprintf("%u", $long_user_ip);

    and replace it with

    $stat['ip'] = sprintf("%u", $long_user_ip&4294967040);

    Where 4294967040 is the decimal representation of a mask 255.255.255.0

    Is this what you were looking for?

    Camu

    PS: don't forget to vote for my plugin!

  3. hebbet
    Member
    Posted 3 years ago #

    works

  4. camu
    Member
    Plugin Author

    Posted 3 years ago #

    PS: don't forget to vote for my plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic