Title: TimeQuota – User Time Limits
Author: RoarDev
Published: <strong>2026 年 9 月 2 日</strong>
Last modified: 2026 年 9 月 2 日

---

搜尋外掛

![](https://ps.w.org/timequota-user-time-limits/assets/banner-772x250.png?rev=3678256)

![](https://ps.w.org/timequota-user-time-limits/assets/icon-128x128.png?rev=3678256)

# TimeQuota – User Time Limits

 由 [RoarDev](https://profiles.wordpress.org/roardev/) 開發

[下載](https://downloads.wordpress.org/plugin/timequota-user-time-limits.1.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/timequota-user-time-limits/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/timequota-user-time-limits/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/timequota-user-time-limits/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/timequota-user-time-limits/#developers)

 [技術支援](https://wordpress.org/support/plugin/timequota-user-time-limits/)

## 外掛說明

**TimeQuota** is a lightweight, production-ready WordPress plugin that empowers 
website owners to set daily active time limits for users and guest visitors.

Unlike simple session timeout plugins that merely calculate `current_time - login_time`,
TimeQuota accurately tracks **true active engagement**. If a user switches to another
tab, minimizes their browser, or walks away from their keyboard, the timer instantly
pauses.

### Key Features:

 * **True Active Time Tracking**: Uses Page Visibility API, window focus/blur, and
   user activity events (mouse movement, keystrokes, scrolling) to measure genuine
   active engagement.
 * **Server-Side Enforcement**: Client timers are never trusted. All limits, timestamps,
   and heartbeats are authoritatively validated and calculated on the WordPress 
   backend.
 * **Smart Multi-Tab Coordination**: Prevents double-counting and timer exploitation
   when users have multiple browser tabs open simultaneously.
 * **Guest & Anonymous Visitor Limits**: Issue secure first-party visitor tokens
   to enforce browsing quotas even for non-logged-in and incognito visitors.
 * **Role-Based Time Limits**: Configure distinct allowances per user role (e.g.,
   30 mins for Subscribers, 120 mins for Authors, Unlimited for Administrators).
 * **Smooth Live Countdown**: Configurable floating or fixed widget displays remaining
   time smoothly without hammering your server.
 * **Customizable Warning Banners**: Warn users before their time runs out (e.g.,
   at 5 minutes remaining).
 * **Modern Expiration Screen**: When the daily quota is exhausted, users see a 
   sleek blocking screen informing them when access resets (or redirect them to 
   a custom upgrade URL).
 * **Automatic Daily Resets**: Quotas reset automatically every day at midnight 
   based on your WordPress timezone—no dependency on WP-Cron reliability.
 * **Excluded Pages**: Whitelist critical pages (login, registration, checkout, 
   account, contact) from quota restrictions.
 * **Real-time Admin Dashboard**: View total tracked users today, currently active
   users, total site usage time, and top users.
 * **Zero External Dependencies**: 100% self-hosted within your WordPress database.
   No external APIs, third-party tracking, or analytics services required.

### Support & Credits

If you find this plugin helpful, consider supporting its development with a donation.

[Buy Me a Coffee](https://buymeacoffee.com/iksopnil)

Developed by [RoarDev](https://roardev.xyz/)

## 螢幕擷圖

[⌊Admin Dashboard: Live statistics of tracked users, active sessions, and top active
users.⌉⌊Admin Dashboard: Live statistics of tracked users, active sessions, and 
top active users.⌉[

**Admin Dashboard**: Live statistics of tracked users, active sessions, and top 
active users.

[⌊General Settings: Daily quota limits, heartbeat intervals, and inactivity timeouts.⌉⌊
General Settings: Daily quota limits, heartbeat intervals, and inactivity timeouts
.⌉[

**General Settings**: Daily quota limits, heartbeat intervals, and inactivity timeouts.

[⌊Role & Guest Limits: Granular time allowances per WordPress user role and guest
visitors.⌉⌊Role & Guest Limits: Granular time allowances per WordPress user role
and guest visitors.⌉[

**Role & Guest Limits**: Granular time allowances per WordPress user role and guest
visitors.

[⌊Floating Countdown Widget: Sleek frontend timer with active pulsing indicator.⌉⌊
Floating Countdown Widget: Sleek frontend timer with active pulsing indicator.⌉[

**Floating Countdown Widget**: Sleek frontend timer with active pulsing indicator.

[⌊Expiration Screen: Modern glassmorphism blocking screen displayed when daily time
runs out.⌉⌊Expiration Screen: Modern glassmorphism blocking screen displayed when
daily time runs out.⌉[

**Expiration Screen**: Modern glassmorphism blocking screen displayed when daily
time runs out.

[[

[[

## 安裝方式

 1. Upload the `timequota-user-time-limits` folder to the `/wp-content/plugins/` directory,
    or install the ZIP file via **Plugins  Add New  Upload Plugin**.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Navigate to **Settings  TimeQuota** to configure your daily time limits, role rules,
    and expiration behavior.

## 常見問題集

### How does TimeQuota detect if a user is active?

TimeQuota monitors Page Visibility events, browser focus, and user interaction (
mouse moves, scrolling, keyboard input). If the tab is hidden, blurred, or idle 
for longer than the configured timeout (default 60 seconds), the countdown pauses
automatically.

### Can users cheat the timer by modifying JavaScript?

No. The frontend timer is purely visual. The server receives lightweight heartbeat
requests, validates time deltas, and maintains the authoritative database record.
If a user tampers with the JavaScript timer, the server will still reject access
and block the page upon reaching the quota.

### What happens if a user opens multiple tabs?

TimeQuota synchronizes tab state locally. Only the tab currently active in the foreground
increments time and sends heartbeats. Opening 3 tabs simultaneously will not consume
3x the quota or give the user extra time.

### Does TimeQuota support guest and incognito visitors?

Yes. TimeQuota issues a secure first-party cookie token to track active browsing
time for anonymous visitors and enforces daily guest quotas configured in settings.

### How do daily resets work?

Usage is logged against the calendar date according to your WordPress site’s configured
timezone (`wp_date('Y-m-d')`). When the date changes at midnight, the user’s used
seconds for that new date start at 0, instantly resetting their daily quota.

### Are administrators blocked when their time expires?

By default, Administrators are set to Unlimited (0 minutes), meaning they are never
blocked. You can customize limits for any role under **Settings  TimeQuota  User
Roles & Guests**.

## 使用者評論

![](https://secure.gravatar.com/avatar/cbb79351fe6866d3424ee7c1209d921f63035bdc4789579b4e1d058d7a81e4da?
s=60&d=retro&r=g)

### 󠀁[Nice plugin for limiting user’s time.](https://wordpress.org/support/topic/nice-plugin-for-limiting-users-time/)󠁿

 [sadamoks](https://profiles.wordpress.org/sadamoks/) 2026 年 9 月 2 日

Nice plugin for limiting user's time.

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈TimeQuota – User Time Limits〉的開發相關工作。

參與者

 *   [ RoarDev ](https://profiles.wordpress.org/roardev/)

[將〈TimeQuota – User Time Limits〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/timequota-user-time-limits)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/timequota-user-time-limits/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/timequota-user-time-limits/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/timequota-user-time-limits/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/timequota-user-time-limits/)。

## 變更記錄

#### 1.1.0

 * Added Guest / Anonymous visitor active time tracking with cookie-based identification.
 * Configurable daily guest browsing quotas in settings.
 * Improved database migration and safe auto-upgrades.
 * Updated compatibility for latest WordPress releases.

#### 1.0.0

 * Initial release of TimeQuota.
 * Active browsing time tracking with Page Visibility and activity listeners.
 * Role-based time quotas and automatic daily resets.
 * REST API heartbeat synchronization with anti-tamper server validation.
 * Multi-tab coordination via localStorage.
 * Configurable floating countdown widget and warning notifications.
 * Customizable blocking screen and redirect options.
 * Admin dashboard with real-time site usage statistics.

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **2 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/timequota-user-time-limits/)
 * 標籤:
 * [access-control](https://tw.wordpress.org/plugins/tags/access-control/)[session limit](https://tw.wordpress.org/plugins/tags/session-limit/)
   [time limit](https://tw.wordpress.org/plugins/tags/time-limit/)[time management](https://tw.wordpress.org/plugins/tags/time-management/)
 *  [進階檢視](https://tw.wordpress.org/plugins/timequota-user-time-limits/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/timequota-user-time-limits/reviews/)

## 參與者

 *   [ RoarDev ](https://profiles.wordpress.org/roardev/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/timequota-user-time-limits/)