• I don’t understand how the Filter Logs feature works on the Logs tab. Please provide some examples of how to apply filters to Include or Exclude specific data.

    I’d like to eliminate my own IP address from the logs. This is different from simply white-listing my IP. There’s no need for me to see pages of Passed activity from my own PC.

    I (believe) I understand how the “Record validation logs” setting causes data to enter into the log. I do not want to reduce the logs to just Blocked access – because we need to identify Passed access that we wish to block later.

    So would you consider an enhancement to not Log specific IP addresses?

    As a developer, I’m also OK with making code changes. I can tweak my own code if you tell us where to set a hook to Not log a specific address, and to Not Display a specific IP in the Logs. I would be happy to make these changes and submit them back for your approval. I just don’t know where to start.

    Thank you for this fine plugin. I just installed it and am using it with the Defender plugin from WPMU DEV. I believe there is a perfect synergy between these two plugins, as long as there are no conflicts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hello @starbuck,

    First of all, you can find the following options at “Record validation logs” in “Record settings” section:

    1. Disable
    2. Only when blocked
    3. Only when passed
    4. Unauthenticated user
    5. Authenticated user
    6. All of validation

    And this option can be changed programmatically through the filter hook ip-geo-block-record-logs.

    You can also find a similar sample code in your “/wp-content/plugins/ip-geo-block/wp-content/ip-geo-api/drop-in-sample.php“. You can put it into your geolocation api folder for this plugin after changing its name as “drop-in.php”.

    And the second point is how can this plugin identify YOU. For now there are 3 ways, e.g. IP address, country code and logged in or not. Also special defined user agent string may be used if you embed by your self.

    And the last, unfortunately, there’s no filter hook to control showing logs. But you can use ip-geo-block-backup-dir to save CSV file in order to analyze at off-line.

    I hope this information can help you to achieve your goals.

    I just installed it and am using it with the Defender plugin from WPMU DEV. I believe there is a perfect synergy between these two plugins, as long as there are no conflicts.

    That’s interesting for me. I don’t know much about Defender. So I’d appreciate you if you share something useful you find.

    Thanks for your asking.
    Good luck!

    Thread Starter Tony G

    (@starbuck)

    I missed your response here. Thanks for the nudge in the other thread.

    I’m still trying to get a handle on logging with IPGB. I will look at the code and hooks that you have referenced, as time permits and will post back here.

    Notes about Defender are in another thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Log filter?’ is closed to new replies.