Overview

This module will count the number of times an authenticated user visits a page matching a path pattern. If the views per hour reach the established limit the user will be redirected to either an established page or a will be sent to the standard 403 page.

Permissions exist to allow roles to ignore the limits so administrators can browse without limitation.

Use Cases

The use case I initially built this for is to deter users from manually scraping through other user's profiles to build mailing lists.

Another use case that is commonly seen are sites like dating sites and other subscription based sites. You may want users to be able to create free user accounts that will give them some access but limit how much they can see at a given time. This will allow you to limit the browsing of free users and encourage them to purchase a subscription for unlimited access.

Features

  • Count an authenticated user's visits to a provided path pattern
  • Restrict access to a path pattern once the provided limit is reached
  • Set a custom error page to redirect users to when access is restricted
  • Grant some roles immunity from Limit Visit

Development and Support

This has been developed as part of my work for the University of Waterloo - Office of Advancement

It is actively supported so far as I am maintaining it to meet the needs of my projects.

Community contribution is welcome.

Future plans

  • Tracking anonymous users by ip address or cookie/session information
  • Custom error page per rule instead of a single error page for all rules
  • I may attempt upgrading this to D8 but that is far into the future

Project information

Releases