Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows site owners to set a limit on how many times anonymous users can view certain content before a paywall is applied. It provides a new rule for paywall access, a block to inform users about their access status and remaining views, and uses Drupal's core flood API for rate limiting based on session ID or IP address.

Sometimes a site owner may let anonymous users navigate a little before applying the paywall rule. For example, that visitor could visit 10 different nodes of a specific bundle before showing the paywall block.

For this, module adds a new RolePaywallAccessRule to let anonymous visit a predefined content the chosen x times before applying the restriction.

It also adds a new block to be shown whenever the user is attained to rate limits (allowed or denied) with info like:

Access to content is Allowed
Current articles views between 22:00:16 and now: x of max allowed.

Note that rate limit could be configured on session id basis or ip basis, it use the core flood api under the hood. It is recommended to use the session id basis as if not the public ip of your current connection will be used, so if used in a multiple computers home, one device in the subnetwork could waste the paywall limit.

On the other hand, note that session id could be easily superseded, as a simple incognito session in major browsers (or any other method that restarts the session) could reset the session id and so on the limit counter.

Activity

Total releases
1
First release
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.x-dev Dev Feb 24, 2025