Linux 软件免费装

Authenticator

开发者 inpsyde
Bueltge
nullbyte
dnaber-de
更新时间 2022年11月24日 03:38
PHP版本: 5.6 及以上
WordPress版本: 6.1
版权: GPLv3 or later
版权网址: 版权信息

标签

login members access accessible authentification

下载

0.3 0.2 0.4.0 0.4.1 1.0.0 1.1.0 1.2.3 1.3.0 1.3.1

详情介绍:

This plugin allows you to make your WordPress site accessible to logged in users only. In other words, to view your site they have to create or have an account on your site and be logged in. No configuration necessary, simply activating - that's all. Crafted by Inpsyde The team at Inpsyde is engineering the web and WordPress since 2006. Donation? You want to donate - we prefer a positive review, not more. Bugs, technical hints or contribute Please give me feedback, contribute and file technical bugs on GitHub Repo.

安装:

Requirements Installation
  1. Unzip the downloaded package.
  2. Upload folder include the file to the /wp-content/plugins/ directory.
  3. Activate the plugin through the Plugins menu in WordPress. or use the installer via the back end of WordPress.
On PHP-CGI setups If you want to use HTTP authentication for feeds (available since 1.1.0 as an optional feature) you have to update your .htaccess file. If mod_setenvif is available, add the following line to your .htaccess: SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 Otherwise you need mod_rewrite to be enabled. In this case you have to add the following line to your .htaccess: RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] In a typical WordPress .htaccess it all looks like: RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule . /index.php [L] On a multisite installation: BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule . index.php [L] END WordPress Settings You can change the settings of Authenticator in Settings → Reading. The settings refer to the behavior of your blog's feeds. They can be protected by HTTP authentication (not all feed readers support this) or by an authentication token which is added to your feed URL as a parameter. The third option is to keep everything in place. So feed URLs will be redirected to the login page if the user is not logged in (send no auth-cookie). If you using token authentication, you can show the token to the blog users on their profile settings page by setting this option. HTTP Auth Users can gain access to the feed with their username and password. Token Auth The plugin will generate a token automatically when choosing this option. Copy this token and share it with the people who should have access to your feed. If your token is ef05aa961a0c10dce006284213727730 the feed URLs look like so: Main feed https://example.com/feed/?ef05aa961a0c10dce006284213727730 Main comment feed https://example.com/comments/feed/?ef05aa961a0c10dce006284213727730 Without permalinks https://example.com/?feed=rss2&ef05aa961a0c10dce006284213727730 API Filters <?php $authenticator_options = apply_filters( 'authenticator_get_options', array() ); <?php add_filter( 'authenticator_bypass', '__return_true' ); <?php add_filter( 'authenticator_bypass_feed_auth', '__return_true' ); <?php add_action( 'plugins_loaded', function() { add_filter( 'authenticator_exclude_posts', function( $titles ) { $titles[] = 'Contact'; // here goes the post-title of the post/page you want to exclude return $titles; } ); } );

屏幕截图:

  • Authenticator's setting options at Settings → Reading.
  • Auth token for feeds is displayed on the user's profile settings page.

其他记录:

License Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a small donation for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;) Translations The plugin comes with various translations, please refer to the WordPress Codex for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the translation possibility in this page here. Donation? You want to donate - we prefer a positive review, not more.

更新日志:

1.3.1 (2022-11-22) 1.3.0 (2017-11-30) 1.2.3 (08/10/2017) 1.2.2 (08/10/2017) 1.2.1 (08/31/2014) 1.2.0 (06/26/2014) 1.1.0 (04/17/2014) 1.0.0 (01/20/2012) 0.4.1 (04/20/2011) 0.4.0 (04/11/2011) 0.3.0 (04/06/2011)