Re: Limit page views for guests
Limit page views for guests
there is no plugin, but it’s easy to create (this is just an example not a full working snippet)
If your visitors are from the same network you might have problems with this.
session_start();
$ipkey = $_SERVER['REMOTE_ADDR'];
$_SESSION[$ipkey]++;
if ($_SESSION[$ipkey] >= 10) {
header("Location: /register.php");
exit;
}
check also the function on my own forum.