RestrictedContentRedirect This code allows you to block some pages to unlogged users on your wordpress website. Just go to your plugins folder, create a new folder called RestrictedContentRedirect and drag the RestrictedContentRedirect.php file inside.