如何使您的WordPress博客完全私有

Do you want to make your WordPress blog completely private? Often we get requests from parents who want to use WordPress to share baby photos with friends and family. In this article, we will show you how to make your blog completely private. We will also cover how to create a private and password protected post in WordPress for those who want to have a public blog with a private area.

您想让WordPress博客完全私有吗? 通常,我们会收到希望使用WordPress与亲朋好友分享婴儿照片的父母的请求。 在本文中,我们将向您展示如何使您的博客完全私密。 我们还将介绍如何在WordPress中为那些希望拥有带有私有区域的公共博客的人创建私有和受密码保护的帖子。

什么时候以及谁需要私人博客? (When and Who Needs a Private Blog?)
  • A private WordPress blog is useful for sharing your family events, wedding photos, baby pictures, etc. with friends and family. See some of the best WordPress themes for family blogs for inspiration.
  • 私人WordPress博客可用于与亲朋好友分享您的家庭活动,婚礼照片,婴儿图片等。 查看家庭博客的一些最佳WordPress主题以获取灵感。
  • A private blog can be used as your own private diary or journal.

    私人博客可用作您自己的私人日记或日记。
  • Teams working on projects can collaborate on a private blog.

    从事项目的团队可以在私人博客上进行协作。
  • An under construction website that is not yet fully ready for public viewing.

    正在建设中的网站,尚未完全可供公众查看。
  • A classroom website can be made private and accessible only to registered students.

    教室网站可以设为私有,并且只有注册学生才能访问。
影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

使WordPress博客完全私有 (Making a WordPress Blog Completely Private)

First thing you need to do is install and activate the My Private Site plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活“ 我的私人网站”插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation you need to visit Settings » Private Site page to configure the plugin settings.

激活后,您需要访问设置»私有站点页面以配置插件设置。

Private site settings page

First you need to check the box under ‘Make Site Private’ section to enable the plugin and make your site private.

首先,您需要选中“将网站设为私有”部分下的框,以启用该插件并将您的网站设为私有。

The next section is to allow users to register on your WordPress site. If you don’t want users to be able to register on your site, then you can skip this section.

下一部分将允许用户在您的WordPress网站上注册 。 如果您不希望用户能够在您的网站上注册,则可以跳过此部分。

Under ‘Landing Location’ section you can choose which page users will see when they login. By default, the plugin will return them to the same URL they requested before login. You can also redirect users to homepage, WordPress admin dashboard, any other URL on your WordPress site.

“着陆位置”部分下,您可以选择用户登录时将看到的页面。 默认情况下,插件会将其返回到登录前所请求的相同URL。 您还可以将用户重定向到首页,WordPress管理仪表板以及WordPress网站上的任何其他URL。

Landing location

The custom login page section is only applicable if you are using a custom login page on your WordPress site. Simply check the box, and provide the URL of your custom login page. The plugin will then start using that URL as login page.

自定义登录页面部分仅在您在WordPress网站上使用自定义登录页面时适用。 只需选中该框,然后提供您的自定义登录页面的URL。 然后,该插件将开始使用该URL作为登录页面。

Custom login page settings

My Private Site plugin also allows you to exclude some parts of your website from being private. For example, if you are using a static front page and want users to see it, then you can add it as an exclusion. You can also add other URLs like a contact form or about page into exclusion list.

我的私人网站插件还允许您将网站的某些部分排除在私人之外。 例如,如果您使用静态首页并且希望用户看到它,则可以将其添加为排除项。 您还可以将其他URL(例如联系方式)或关于页面添加到排除列表中。

Exclude pages to be always visible

Don’t forget to click on the save changes button to store your settings.

不要忘记单击“保存更改”按钮来存储您的设置。

That’s all, people visiting your website will now be asked to login before they can view your website. Depending on your settings, users may be able to see excluded pages or they will just see the login page.

就是这样,访问您的网站的人现在将被要求登录,然后他们才能查看您的网站。 根据您的设置,用户可能能够看到排除的页面,或者他们只会看到登录页面。

在WordPress中将个人帖子设为私人 (Making Individual Posts Private in WordPress)

WordPress comes with a built-in feature which allows you to make posts or pages private and password protected. Here is how to make a WordPress post private.

WordPress带有内置功能,可让您将帖子或页面设为私有且受密码保护。 这是将WordPress帖子设为私有的方法。

You need to start by creating a new post in WordPress or edit an existing one. On the post editor screen, you will see the Visibility option under the publish meta box. Click on the Edit link next to visibility.

您需要先在WordPress中创建新帖子或编辑现有帖子。 在帖子编辑器屏幕上,您将在“发布”元框下看到“ 可见性”选项。 单击可见性旁边的编辑链接。

Edit a post's visibility

There you will see the options to make a post Private or add a password protection to the post. Choose the appropriate radio button to make a post private or password protected.

在那里,您将看到将帖子设为私有或为帖子添加密码保护的选项。 选择适当的单选按钮以使帖子变为私有或受密码保护。

Making a WordPress post password protected or private

If you choose to make a WordPress post password protected, then WordPress will ask you to enter a password. Users will need to enter this exact password to view the post. You can send this password to friends and family by email, and they can view the post by entering the password.

如果您选择使WordPress发布密码受保护,则WordPress将要求您输入密码。 用户将需要输入此确切密码才能查看该帖子。 您可以通过电子邮件将此密码发送给亲朋好友,他们可以通过输入密码来查看帖子。

Important: Please note that users with the user role of Editor or Administrator can view a password protected or private post by logging into the WordPress admin area. However if you are the only user on your site, then you don’t need to worry about that. For more information please see our guide on how to add or remove capabilities from user roles in WordPress.

重要提示:请注意,具有“ 编辑者”或“ 管理员用户角色用户可以通过登录WordPress管理区域来查看受密码保护的帖子或私人帖子。 但是,如果您是网站上的唯一用户,则无需担心。 有关更多信息,请参见有关如何在WordPress中从用户角色添加或删除功能的指南。

We hope this article helped you create a completely private WordPress blog and posts. It is a great way to share your things with select people on your own website.

我们希望本文能帮助您创建一个完全私人的WordPress博客和帖子。 这是在您自己的网站上与特定人员分享您的事物的一种好方法。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterGoogle+上找到我们。

翻译自: https://www.wpbeginner.com/beginners-guide/how-to-make-your-wordpress-blog-completely-private/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值