=== Simple IP Logger ===
Contributors: minikuru
Tags: ip-logging, analytics, statistics, security, monitoring
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

ページ単位でアクセスIPアドレスを記録する軽量プラグイン。アクセス傾向の監視、不要なIPのフィルタリング、広告トラフィックの検証に役立ちます。

== Description ==
Simple IP Logger is a lightweight WordPress plugin that lets you:
- Log visitor IP addresses when accessing specific pages or all pages
- View logs with access date/time, IP address, post ID, and referer
- Set target post IDs to monitor
- Exclude IPs such as admin/staff from being logged
- Check logs from the admin screen with pagination and filters
- View access statistics by unique IPs and access counts
- Use asynchronous logging via Ajax for performance

This plugin is useful for confirming actual visits from ads (e.g. Google Ads), detecting suspicious access patterns, or simply tracking visitor behavior without user accounts.

No external tracking, no bloat – just simple, self-hosted logging.

---

**日本語による説明：**

Simple IP Logger（シンプルIPロガー）は、特定のページまたは全ページへのアクセスIPを記録・可視化できる軽量なWordPressプラグインです。

- 投稿・固定ページのアクセスIPを記録
- 記録された日時・IP・投稿ID・リファラーを管理画面で一覧表示
- 特定の投稿IDのみ記録する、除外IPを設定する、など柔軟なログ管理が可能
- Google広告などの広告流入が「実際にあったかどうか」も確認できます
- Ajaxによる軽量な記録方式で、ユーザーの表示速度に影響を与えません
- IP別アクセス統計も管理画面から確認可能

使いやすく、かつ自己完結型でプライバシーを重視した設計です。

== Installation ==
1. Upload the ZIP file via Plugins > Add New > Upload Plugin
2. Activate the plugin
3. Go to "IPログ管理" in the admin menu to configure settings and view logs

== Frequently Asked Questions ==
= Does this plugin store any personal data? =
Only the IP address, access time, and referer are logged. No cookies or user account data is used.

= Can I exclude specific IPs? =
Yes, use the "除外するIPアドレス" setting to avoid logging your own access.

= Does it support custom post types? =
Yes, logging applies to any post/page ID.

== Screenshots ==
1. IP log list view (with filters, pagination, referer, and post title)
2. Plugin settings screen (log targets, excluded IPs, entries per page)
3. Access statistics view (grouped by IP address, with latest access and referers)

== Screenshots ==

1. ログの表示画面
2. 管理画面の設定画面

== Changelog ==
= 1.0.1 =
* Improved security with proper sanitization of server variables
* Fixed timezone handling using WordPress functions
* Added proper script enqueuing
* Added nonce verification to all form submissions
* Proper escaping of output data

= 1.0.0 =
* Initial release

== Upgrade Notice ==
= 1.0.1 =
Security and code quality improvements. Upgrading is recommended for all users.