Title: Force User Login
Author: smatric
Published: <strong>Novembro 9, 2011</strong>
Last modified: Aŭgusto 28, 2015

---

Priserĉi kromprogramojn

Tiu ĉi kromprogramo **ne estis testita en la 3 lastaj gravaj eldonoj de WordPress**.
Eble ĝi ne plu estas prizorgata kaj ĝi eble havus kongruajn problemojn en novaj 
versioj de WordPress.

![](https://s.w.org/plugins/geopattern-icon/force-user-login-modified.svg)

# Force User Login

 De [smatric](https://profiles.wordpress.org/smatric/)

[Elŝuti](https://downloads.wordpress.org/plugin/force-user-login-modified.1.0.2.zip)

 * [Detaloj](https://eo.wordpress.org/plugins/force-user-login-modified/#description)
 * [Pritaksoj](https://eo.wordpress.org/plugins/force-user-login-modified/#reviews)
 *  [Instalo](https://eo.wordpress.org/plugins/force-user-login-modified/#installation)
 * [Programado](https://eo.wordpress.org/plugins/force-user-login-modified/#developers)

 [Helpo](https://wordpress.org/support/plugin/force-user-login-modified/)

## Priskribo

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.

Modification: use get_site_url() to redirect to the login page properly when WordPress
is located in a subdirectory.

## Instalo

 1. Upload `force-login.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## OD

  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.

## Pritaksoj

There are no reviews for this plugin.

## Kontribuantoj k. programistoj

“Force User Login” estas liberkoda programo. La sekvaj homoj kontribuis al la kromprogramo.

Kontribuantoj

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

[Traduki “Force User Login” en vian lingvon.](https://translate.wordpress.org/projects/wp-plugins/force-user-login-modified)

### Ĉu interesita en programado?

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

## Ŝanĝprotokolo

#### 1.0.2

 * Tested with WordPress 4.3
 * Updated meta description
 * A screenshot added

## Metadatumoj

 *  Version **1.0**
 *  Last updated **antaŭ 11 jaroj**
 *  Active installations **40+**
 *  WordPress version ** 2.0.2 or higher **
 *  Tested up to **4.3.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/force-user-login-modified/)
 * Tags
 * [force user login](https://eo.wordpress.org/plugins/tags/force-user-login/)[login](https://eo.wordpress.org/plugins/tags/login/)
   [password](https://eo.wordpress.org/plugins/tags/password/)[privacy](https://eo.wordpress.org/plugins/tags/privacy/)
 *  [Altnivela rigardo](https://eo.wordpress.org/plugins/force-user-login-modified/advanced/)

## Pritaksoj

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/force-user-login-modified/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/force-user-login-modified/reviews/)

## Kontribuantoj

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

## Helpo

Got something to say? Need help?

 [Vidi helpforumon](https://wordpress.org/support/plugin/force-user-login-modified/)

## Donaci

Ĉu vi volas subteni la pluevoluigon de tiu ĉi kromprogramo?

 [ Donaci al tiu ĉi kromprogramo ](http://Don't%20worry%20about%20it)