Type to search.

#973 by installs

Force Login

by Kevin VessVersion 5.6.3

Force Login is a simple lightweight plugin that requires visitors to log in to interact with the website.

Active installs
30,000+
#973 of 1,000
Downloads, all time
10.3M
10,303,312
Downloads, 30 days
175.8K
41.3K in the last 7
Rating
4.8 / 5
101 reviews
Last updated
4 months ago
Jun 19, 2026
Version
5.6.3
24 releases

Upkeep and compatibility

Last updatedJune 19, 2026Updated in the last year
Tested up toWordPress 7.0.8Older than WordPress 7.1.4, the current release
Needs WordPress4.6 or newer
Needs PHPNot stated
First publishedJune 11, 2014
Support, last two months1 of 2 threads resolved (50%)

Reviews

4.8 / 5 from 101 reviews

Reviews by star rating
5 stars95
4 stars0
3 stars0
2 stars3
1 star3

Downloads, last 30 days

Low 5.7K a dayHigh 6.3K a day

What the author says it does

Easily hide your WordPress site from public viewing by requiring visitors to log in first. As simple as flipping a switch.

Make your website private until it’s ready to share publicly, or keep it private for members only.

Features

  • WordPress Multisite compatible.
  • Login redirects visitors back to the url they tried to visit.
  • Extensive Developer API (hooks & filters).
  • Customizable. Set a specific URL to always redirect to on login.
  • Filter exceptions for certain pages or posts.
  • Restrict REST API to authenticated users.
  • Translation Ready & WPML certified.

Bug Reports

Bug reports for Force Login are welcomed on GitHub. Please note that GitHub is not a support forum.

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

1. How can I specify a redirect URL on login?

By default, the plugin sends visitors back to the URL they tried to access. However, you can redirect users to a specific URL by adding the built-in WordPress filter login_redirect to your functions.php file.

2. How can I add exceptions for certain pages or posts?

You can bypass Force Login based on any condition by adding the following filter to your functions.php file.

You may use the WordPress Conditional Tags in your code.

/** * Bypass Force Login to allow for exceptions. * * @param bool $bypass Whether to disable Force Login. Default false. * @param string $visited_url The visited URL. * @return bool */ function my_forcelogin_bypass( $bypass, $visited_url ) {

3. How do I hide the “← Back to {sitename}” link?

The WordPress login screen includes a “← Back to {sitename}” link below the login form; which may not actually take you back to the site while Force Login is activated. You can hide this link by adding the following action to your functions.php file.

Requires: WordPress 2.5 or higher

Latest changelog entry

5.6.3

  • Fix – Fixed issue for sites with a custom login URL.

Tagged

Plugins that share its tags

#202 by installs

WP Consent API

by Rogier Lankhorst

Simple Consent API to read and register the current consent category.

Installs
200,000+
Rating
5.0 (2)
Updated
16 days ago

#348 by installs

Statify

by pluginkollektiv

Visitor statistics for WordPress with focus on data protection, transparency and clarity. Perfect as a widget in your WordPress Dashboard.

Installs
100,000+
Rating
4.8 (51)
Updated
41 days ago

#526 by installs

Termly – GDPR/CCPA Cookie Consent Banner

by davidtaroko

Our easy to use cookie consent plugin can assist in your GDPR, CCPA, and ePrivacy Directive compliance efforts.

Installs
80,000+
Rating
3.6 (204)
Updated
10 months ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin. The author takes donations at their donate page.