Title: Pageview content restriction
Author: curlybracket
Published: <strong>April 18, 2014</strong>
Last modified: August 8, 2015

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/pageview-content-restriction.svg)

# Pageview content restriction

 By [curlybracket](https://profiles.wordpress.org/veganist/)

[Download](https://downloads.wordpress.org/plugin/pageview-content-restriction.zip)

 * [Details](https://co.wordpress.org/plugins/pageview-content-restriction/#description)
 * [Reviews](https://co.wordpress.org/plugins/pageview-content-restriction/#reviews)
 *  [Installation](https://co.wordpress.org/plugins/pageview-content-restriction/#installation)
 * [Development](https://co.wordpress.org/plugins/pageview-content-restriction/#developers)

 [Support](https://wordpress.org/support/plugin/pageview-content-restriction/)

## Description

This WordPress plugin restricts non-authenticated users to a number of pages to 
view. You can define how many pages an unauthenticated user may view. If the limit
is reached, the user is redirected to the WordPress login page (default) or a page
of your choice.

This plugin uses cookies, but not only. People can not just empty their cookies 
and start watching your page again. In this plugin i use a technique in which I 
combine a users’ IP address with the user agent of this particular user, and create
a more or less unique hash out of these two informations. This hash is stored as
a file in the wp-content/uploads directory.

A site administrator can choose to reinitialize all sessions and empty the hash 
files.

Furthermore, robots might be blocked. However, important bots like GoogleBot, BingBot
and YahooBot are excluded from the restriction.

This technique might be problematic for users using Tor / TorBrowserBundle as lots
of people share a same originating IP address and also the same user agent (check
here https://panopticlick.eff.org/). I will certainly test this aspect a little 
better in a later version of this plugin.

## Installation

 1. Upload `very-basic-content-restriction` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure the plugin in Options => Pageview Content Restriction.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Pageview content restriction” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ curlybracket ](https://profiles.wordpress.org/veganist/)

[Translate “Pageview content restriction” into your language.](https://translate.wordpress.org/projects/wp-plugins/pageview-content-restriction)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/pageview-content-restriction/),
check out the [SVN repository](https://plugins.svn.wordpress.org/pageview-content-restriction/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/pageview-content-restriction/)
by [RSS](https://plugins.trac.wordpress.org/log/pageview-content-restriction/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release

## Meta

 *  Version **1.0**
 *  Last updated **11 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.8 or higher **
 *  Tested up to **4.2.39**
 *  Language
 * [English (US)](https://wordpress.org/plugins/pageview-content-restriction/)
 * Tags
 * [access](https://co.wordpress.org/plugins/tags/access/)[content restriction](https://co.wordpress.org/plugins/tags/content-restriction/)
   [member only](https://co.wordpress.org/plugins/tags/member-only/)[restrict](https://co.wordpress.org/plugins/tags/restrict/)
   [restricted access](https://co.wordpress.org/plugins/tags/restricted-access/)
 *  [Advanced View](https://co.wordpress.org/plugins/pageview-content-restriction/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/pageview-content-restriction/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/pageview-content-restriction/reviews/)

## Contributors

 *   [ curlybracket ](https://profiles.wordpress.org/veganist/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/pageview-content-restriction/)