Force User Login
Very small plugin that forces users to login to view blog content.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 6182 days ago • 2 reviews
Is Force User Login abandoned?
Possibly abandoned (last update 6182 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
This is a very small plugin that forces users to login before viewing any content. This is done by checking if the user is logged in, and if not, redirecting them to the login page. Users attempting to view blog content via RSS are also authenticated via HTTP Auth.
Installation
- Upload
force-login.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Frequently Asked Questions
Can I change where the user is redirected after logging in?
Yes! A variable called $redirect_to (line 33) is currently set to redirect the user to the page they were trying to access. If you changed that line from
$redirect_to = $_SERVER['REQUEST_URI'];
to
$redirect_to = '/';
it would redirect the user to the home page.