Skip to content
WordPress.org
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
  • Swag ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Kumarrishikesh12 Activity Log & IP Blocker

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Kumarrishikesh12 Activity Log & IP Blocker

By Rishikesh Kumar
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

Keep an eye on everything that happens on your WordPress site — and block anyone who should not be there.

Activity Log records, with the IP address, every important change: successful and failed logins (with the username that was tried), logouts, posts and pages created / updated / trashed / deleted — and what changed inside a post (title, web address, author, date, template, featured image, summary, or text), media uploaded / deleted, plugins activated / deactivated / installed / updated, themes switched / installed / updated, WordPress core updates, users created / updated / deleted / role changed / password or email changed, settings changed (with the old and new value), comments added / edited / replied to / approved / marked as spam / restored / deleted, categories and tags created / edited / deleted, custom fields changed, widgets added / removed / moved, menus created / edited / deleted, scheduled tasks changed, and shop activity (products, orders, coupons) when WooCommerce is active. Every event is rated by importance — Critical, High, Medium, Low, or Info only — and you can filter the log by importance, role, email, post, or content type.

IP Blocker lets you block any IP from the dashboard:

  • One-click Block IP on any log row — for example, an IP with many failed logins.
  • Manual block by single IP, CIDR range (203.0.113.0/24), or wildcard (203.0.113.*).
  • Blocked IPs get a 403 “Access blocked” page on every page — front end, login page, and wp-admin.
  • Auto-block: 5 failed logins from one IP within 15 minutes blocks that IP automatically for 24 hours (all numbers changeable in Settings).
  • On / Off switches: Master, Activity logging, and IP blocking, each separately.
  • Whitelist: your own IP is whitelisted automatically on activation, so you cannot lock yourself out. Add office or home IPs too.
  • Unblock any time from Blocked IPs. Temporary blocks expire on their own.

Critical email alerts tell you at once when a new administrator is created, a user is made administrator, or a plugin is installed or activated. Lock by username locks an account after too many failed logins for that username, whatever IP the attacker uses. Suspicious logins — a login from an IP that user never used before, or right after failed logins — are highlighted in red. Bulk actions block or delete many log rows at once, import / export moves your whole blocklist to another site as a CSV, login history shows each user’s last login and failed attempts on their profile, the live log refreshes every 5 seconds, and a weekly summary email reports failed logins, IPs blocked, and top attacker IPs.

In version 2.0.0, new and free:

  • Field-level detail — see exactly what changed, not just that something changed.
  • Switch events on or off one by one, and leave out certain people, roles, IP addresses, or kinds of content from the log.
  • Who can see the log — choose which roles are allowed to view or manage it.
  • Reports — logins per person, new users, posts published, password changes, and the most common IP addresses, with CSV and printable-page download, plus a daily summary email.
  • Your own email alerts — pick any kind of event, who should get the email, and the subject line. You can also put a message on the login page.
  • Sessions — see who is signed in right now, sign anyone out, and set rules such as signing people out after a set time of doing nothing or limiting how many sessions a role can have at once.
  • Click View on any log row to see the full details (including browser and web address), add a note for your team, or copy the details.
  • Shop activity when WooCommerce is active — products, prices, stock, orders, and coupons.
  • Move your settings to another website as a file, and WP-CLI commands to clear old logs, change how long logs are kept, switch events on or off, and see counts.

All logs stay in your own WordPress database. Passwords are never logged. When a setting changes, the old and new values are shown in short form (long values are cut short), except for settings whose name contains words like password, secret, token, or key — for those, only the name of the setting is shown, never the value. Logs older than your retention setting (90 days by default) are deleted automatically.

External services

This plugin sends data to an outside service only in one optional case, which is off by default:

  • Country / city lookup (ip-api.com) — ip-api.com is a free service that looks up the country and city for an IP address. This plugin uses it only to show the country and city next to each IP address in the activity log.
    • What data is sent: the IP address, and nothing else. No usernames, no post content, no settings, and no other personal data.
    • When: only if you turn on “Country / city lookup” in Settings. Each IP address is sent once, the result is cached for 30 days, and failed lookups are cached for 1 hour. No lookup happens at all while this setting is off (the default).
    • Terms and privacy policy: the service’s terms of use and privacy policy are on one page: https://ip-api.com/docs/legal

Screenshots

Activity Log — date, user, source and IP, topic, context, meta, importance, and one-click Block IP on every row. Suspicious logins are highlighted in red. Click View for full details and notes.
Activity Log — date, user, source and IP, topic, context, meta, importance, and one-click Block IP on every row. Suspicious logins are highlighted in red. Click View for full details and notes.
Blocked IPs — block a new IP, import / export the blocklist, and unlock locked accounts.
Blocked IPs — block a new IP, import / export the blocklist, and unlock locked accounts.
Settings — on/off switches, auto-block, critical email alerts, lock by username, country lookup, and the weekly summary email.
Settings — on/off switches, auto-block, critical email alerts, lock by username, country lookup, and the weekly summary email.
Reports — logins per person, new users, posts published, and the most common IP addresses, with CSV and printable-page download.
Reports — logins per person, new users, posts published, and the most common IP addresses, with CSV and printable-page download.
Sessions — who is signed in right now, sign anyone out, and rules for idle sign-out and how many sessions a role can have.
Sessions — who is signed in right now, sign anyone out, and rules for idle sign-out and how many sessions a role can have.

Installation

  1. Upload the kumarrishikesh12-activity-log-ip-blocker folder to /wp-content/plugins/, or upload the zip in Plugins → Add New → Upload Plugin.
  2. Activate the plugin. Your current IP is whitelisted automatically.
  3. Go to Activity Log in the left sidebar to see the log, Blocked IPs to block or unblock, and Settings for the on/off switches and auto-block numbers.

To update, upload the new zip and choose “Replace current with uploaded”. Do not delete the plugin first — deleting it removes all logs and the block list.

FAQ

How do I block someone who tried to log in?

Go to Activity Log, filter by “Failed login”, find the IP, and click “Block IP” on that row. Or go to Blocked IPs and type the IP yourself.

What happens to a blocked IP?

It sees a 403 “Access blocked” page on every page of the site, including wp-login.php and wp-admin. The attempt is written to the log as “Blocked access attempt”.

How does auto-block work?

By default, 5 failed logins from one IP within 15 minutes blocks that IP for 24 hours. Change the threshold, time window, and block length in Settings → Auto-block after failed logins. You can also turn on an email alert when an IP is auto-blocked.

I blocked my own IP by mistake. How do I get back in?

Add this line to wp-config.php (above “That’s all, stop editing!”) to turn off all blocking, log in, unblock the IP in Blocked IPs, then delete the line from wp-config.php:

define( 'KUMARRISHIKESH12_ALIB_DISABLE', true );

All visitors show the same IP address. Why?

Your site is behind a proxy or Cloudflare, so WordPress only sees the proxy’s IP. Turn on “Trust proxy headers” in Settings.

Is any data sent anywhere?

By default, no. Logs, blocks, and settings are stored only in your own WordPress database, with no external API calls and no tracking. The only exception is the optional “Country / city lookup” setting (off by default): when you turn it on, each IP address is sent once to ip-api.com to look up its country and city, and the result is cached for 30 days.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Kumarrishikesh12 Activity Log & IP Blocker” is open source software. The following people have contributed to this plugin.

Contributors
  • Rishikesh Kumar

Translate “Kumarrishikesh12 Activity Log & IP Blocker” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.0.13

  • Tested up to WordPress 7.2. No code changes — the plugin uses no jQuery, REST API, media handling, editor components, or Abilities / Interactivity API, so none of the WordPress 7.2 changes affect it.

2.0.12

  • Network activation now fetches sites in pages of 100 until none are left, so networks with more than 100 sites get their tables on every site (get_sites() returns at most 100 per call by default).

2.0.11

  • Network activation on multisite now creates the log, blocked-IP and notes tables, default settings and daily-cleanup job on every site, and a site created later on a network where the plugin is network-active gets its tables too.
  • The readme’s External services section now explains what ip-api.com is used for, what data is sent and when, and links to its terms and privacy policy (https://ip-api.com/docs/legal). The same link is shown next to the country / city lookup setting and in How to Use.

2.0.10

  • Repackaged: the 2.0.9 zip had the plugin folder nested twice, so the submission page could not find the main plugin file. Same code as 2.0.9, correct zip layout.

2.0.9

  • Plugin URI changed to the WordPress.org plugin page, so it is no longer the same as the Author URI (the submission page rejected the matching URIs).

2.0.8

  • Plugin Check fixes, no new features and no behaviour change: database queries now use the table name through $wpdb->prefix directly, so Plugin Check no longer reports unprepared SQL; the bulk-delete list is built the same way, and the filtered log queries keep their shared WHERE builder (the checker cannot see placeholders inside that variable, so those lines carry a precise suppression note). CSV downloads (activity log, blocklist, reports) are now written to an in-memory file instead of php://output, and the blocklist import reads with SplFileObject instead of fopen/fclose — the downloaded CSV bytes are identical. Added the missing translator comments, ordered the placeholders in the settings-file version warning (which also fixes a literal “\u2019” showing in that message), and escape the severity badge, the multisite note, and the inspector script properly (the inspector script is now printed with wp_print_inline_script_tag()). The “Tested up to” line was removed from the plugin header (it stays in the readme), and the short description was shortened to fit the 150-character limit.

2.0.7

  • Settings page reorganised: it was one very long page, so it is now 4 tabs — General (switches, auto-block, username lock, logs & IP detection), Alerts & emails (critical alerts, weekly/daily summaries, notifications), What to record, and Leave out & access. The tab you were on is remembered after saving. “What to record” is now grouped accordions by category (Security, Users, Posts, Media, Plugins, Themes, Core, Comments, Options, Taxonomy, Widgets, Menus, Cron, Shop, Sessions) — the first group is open, the rest are closed, each showing its event count and how many are switched off, with Expand all / Collapse all buttons. Whitelist, Move settings, and “If you lock yourself out” are collapsed sections below the form. Nothing was removed and all settings still save with the one Save Changes button.

2.0.6

  • Critical fix: v2.0.5 crashed every page with “Cannot redeclare kumarrishikesh12_alib_build_log_where()” — that function already existed in the Reports module, and the new live-search helper used the same name. Renamed the new helper to kumarrishikesh12_alib_build_log_page_where and verified with a full load test (plugin load, logged-in front-end, Activity Log page render, AJAX search) — all pass.

2.0.5

  • Live search: the Activity Log table now updates as you type in any filter box (IP, username, search, email, post name/ID, dates) or change a dropdown — no Filter click, no page reload. It shows how many entries match, hides the page numbers while searching, pauses the 5-second live updates while a search is on, and keeps Export CSV in step with what you typed. The Filter button still works for a full page load with pagination.

2.0.4

  • “Delete all logs” is now in the same filter row, immediately after “Export CSV” — not a separate form pushed to the far right edge, so it can no longer be cut off. It still asks “Delete ALL log entries? This cannot be undone.” before deleting.

2.0.3

  • Moved “Delete all logs” up to the top toolbar, next to “Export CSV” (right-hand end of the filter row). It still asks “Delete ALL log entries? This cannot be undone.” before deleting. The old button below the Blocked IPs table is gone.

2.0.2

  • Layout fix: the Activity Log page was two columns (log table + 300px sidebar on the right), which squeezed the table so the right-hand columns were cut off. The table now takes the full width, and Quick actions / Top attacker IPs / Your IP sit below it in a row (stacked on narrow screens). No other changes.

2.0.1

  • Critical fix: the site crashed for logged-in users on every front-end page (“Call to undefined function get_editable_roles()”). That function only exists in the WordPress admin area, but the session settings check called it unguarded on every page load (wp_loaded). It now uses wp_roles() when get_editable_roles() is not available, in the session settings, the Sessions page, and the log filter. No other changes.

2.0.0

  • Field-level detail: posts and pages now log what changed (title, web address, author, date, template, featured image, summary, text — text changes are summarised by words added/removed, never stored in full); settings log old and new values in short form (never for settings named like passwords or secrets); users log password, email, and name changes (never the password itself); comments log edits, replies, spam / not-spam, and restores, with visitor vs signed-in user noted.
  • New things logged: categories and tags, custom fields, widgets, menus, scheduled tasks, and shop activity (products, prices, stock, orders, coupons) when WooCommerce is active. Database-table changes are not logged — there is no reliable way to watch for them without slowing the site down.
  • Switch single kinds of events on or off, and leave out certain people, roles, IP addresses, or kinds of content from the log. Choose which roles can view or manage the log (administrators always can).
  • Every event is rated by importance (Critical, High, Medium, Low, Info only), shown as a coloured badge, and the log can be filtered by importance, role, user email, post ID, post name, or content type. The log table has a new Details column — click View to see the full event (browser, web address, full details), add a note for your team, or copy the details.
  • Reports page: logins per person, newly registered users, profile changes, posts published, password changes, and the most common IP addresses, with a date range and CSV + printable-page download. Daily summary email added alongside the weekly one.
  • Your own email alerts: pick any kind of event, who should get the email, and the subject line (with placeholders for event, user, IP, site, and date). You can also put a plain message on the login page.
  • Sessions page: see who is signed in right now, sign out one session, all of one person’s sessions, or everyone except yourself. Rules per role: sign people out after a set time of doing nothing, and limit how many sessions a role can have at once. These rules never apply to the only administrator and never run during automated requests.
  • Move your settings to another website as a JSON file (settings, whitelist, locked accounts, notification rules). WP-CLI commands: wp kumarrishikesh12-alib purge, retention, event, stats.
  • Multisite: each site keeps its own log, as before. There is no network-wide log viewer, because reading every site’s log on one page would be slow and could time out on large networks.
  • Plain-language wording throughout: every setting has a short help sentence in everyday words, empty lists explain what to do next, and dangerous actions (Block IP, Delete logs, sign someone out, Unblock) confirm in one plain sentence what will happen.
  • No new outside services and no paid features: everything in 2.0.0 is free, with no paid service, tracking, or upsell. The only outside service remains the optional country / city lookup (off by default, ip-api.com).

1.3.2

  • Submission-ready readme: the privacy statement now correctly discloses the optional country/city lookup (ip-api.com, off by default, IP sent once and cached 30 days) instead of saying no data is ever sent anywhere; Contributors now uses the exact WordPress.org username kumarrishikesh12; License URI added; Screenshots section added; description now covers the v1.3.0 features (critical alerts, lock by username, bulk actions, import/export, live log, weekly summary). No code changes.

1.3.1

  • Layout redesign, Bootstrap-style but without Bootstrap: loading full Bootstrap inside wp-admin breaks WordPress’s own styles and needs a CDN, so the same clean look (cards, grid, badges, header banner) is built with lightweight custom CSS instead. New header banner on every page with Master / Logging / Blocking / Auto-block status pills and the version. Activity Log is now a two-column layout: the table on the left, and a sidebar on the right with Quick actions, Top attacker IPs (last 7 days, with Blocked badge), and your own IP. Stat cards, filter bar, and tables keep the v1.3.0 design.

1.3.0

  • Critical email alerts: instant email when a new administrator is created, a user is made administrator, a plugin is installed or activated, or (optional, off by default) any setting is changed.
  • Import / export blocklist: download all blocked IPs as CSV (IP address, reason, source, blocked by username, blocked by email, blocked on, expires) and import the same file on another site.
  • Bulk actions on the log: tick rows and block all those IPs at once, or delete all selected logs at once.
  • Suspicious login warning: a successful login from an IP that user never used before, or right after failed logins, is highlighted in red with a “Suspicious” badge.
  • Block by username: after too many failed logins for one username, that account is locked and cannot log in from any IP. Locked accounts are listed in Blocked IPs with Unlock, and can be locked manually too.
  • Login history per user: each user profile shows last login, failed attempts in the last 30 days, and the last 10 logins; the Users list has a new Last login column.
  • Live log: the Activity Log refreshes itself every 5 seconds when Live updates is ticked.
  • Country / city for each IP: optional lookup via the free ip-api.com service, cached for 30 days, off by default.
  • Weekly summary email: once a week, failed logins, IPs blocked, and top attacker IPs. Turn it on in Settings, or use “Send weekly summary now” to test it.
  • Attractive new admin design: colour-coded stat cards, badges, red-tinted suspicious rows, and a cleaner filter and bulk bar.

1.2.0

  • Block IP button now shows on every log row, including whitelisted IPs (your own IP was whitelisted, so v1.1.0 hid the button on those rows). Blocking a whitelisted IP asks for confirmation first — it removes that IP from the whitelist, because a whitelisted IP can never be blocked otherwise — and warns you it may lock you out. Auto-block still never blocks a whitelisted IP.
  • Same setting changed twice within 60 seconds is now logged only once, so a noisy option like elementor_controls_usage cannot flood the log with identical rows. Failed logins are never deduped — every one still counts towards auto-block.

1.1.0

  • Activity Log table redesigned to match the reference layout: Date (relative + absolute), User (avatar + name + role), Source (REST API / WP Admin / Login / Cron / WP-CLI + IP address), Topic, Context, Meta, Action (verb like Created / Failed / Blocked).
  • Block IP button is now in the Action column of every log row. Every blocked IP is stored in the Blocked IPs table and listed in a new “Blocked IP addresses (stored)” section at the bottom of the Activity Log page.
  • New source column in the log table (added automatically on existing installs); settings changes now store the option name as Context.

1.0.0

  • First release: activity log with IP address, filters and CSV export, one-click IP blocking from the log, manual IP / CIDR / wildcard blocking, auto-block after failed logins, on/off switches for master / logging / blocking, whitelist, dashboard widget, and daily log cleanup.

Meta

  • Version 2.0.13
  • Last updated 4 hours ago
  • Active installations Fewer than 10
  • WordPress version 6.0 or higher
  • Tested up to 7.2
  • PHP version 7.4 or higher
  • Tags
    Activity Logaudit logip blockerLogin Attemptssecurity
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • Rishikesh Kumar

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry