Title: Force User Login
Author: smatric
Published: <strong>9. November 2011</strong>
Last modified: 28. August 2015

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

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

# Force User Login

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

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

 * [Details](https://de.wordpress.org/plugins/force-user-login-modified/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/force-user-login-modified/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/force-user-login-modified/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/force-user-login-modified/#developers)

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

## Beschreibung

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.

## Installation

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

## FAQ

  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.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„Force User Login“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

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

[Übersetze „Force User Login“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/force-user-login-modified)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/force-user-login-modified/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/force-user-login-modified/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/force-user-login-modified/)
per [RSS](https://plugins.trac.wordpress.org/log/force-user-login-modified/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.0.2

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

## Meta

 *  Version **1.0**
 *  Zuletzt aktualisiert **vor 11 Jahren**
 *  Aktive Installationen **40+**
 *  WordPress-Version ** 2.0.2 oder höher **
 *  Getestet bis **4.3.34**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/force-user-login-modified/)
 * Schlagwörter
 * [force user login](https://de.wordpress.org/plugins/tags/force-user-login/)[login](https://de.wordpress.org/plugins/tags/login/)
   [password](https://de.wordpress.org/plugins/tags/password/)[privacy](https://de.wordpress.org/plugins/tags/privacy/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/force-user-login-modified/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

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

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/force-user-login-modified/reviews/)

## Mitwirkende

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

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

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

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](http://Don't%20worry%20about%20it)